lib/monkey_patching.rb in scale_rb-0.1.3 vs lib/monkey_patching.rb in scale_rb-0.1.4
- old
+ new
@@ -104,10 +104,10 @@
end
def _get(key)
if key.instance_of?(String)
self[key] || self[key.to_sym]
- else
+ elsif key.instance_of?(Symbol)
self[key] || self[key.to_s]
end
end
end