eagleclaw 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/eagleclaw/constmatch.rb +1 -1
- metadata +2 -2
data/lib/eagleclaw/constmatch.rb
CHANGED
@@ -22,7 +22,7 @@ module EagleClaw
|
|
22
22
|
#
|
23
23
|
def [](constant)
|
24
24
|
constants.each do |const|
|
25
|
-
return const_get(const) if const.downcase == constant.to_s.downcase
|
25
|
+
return const_get(const) if const.to_s.downcase == constant.to_s.downcase
|
26
26
|
end
|
27
27
|
raise NameError, "Constant #{constant.inspect} not found"
|
28
28
|
end
|