lib/hashr.rb in hashr-0.0.2 vs lib/hashr.rb in hashr-0.0.3
- old
+ new
@@ -25,10 +25,10 @@
def respond_to?(name)
true
end
def method_missing(name, *args, &block)
- case name.to_s[-1]
+ case name.to_s[-1, 1]
when '?'
!!self[name.to_s[0..-2].to_sym]
when '='
self[name.to_s[0..-2].to_sym] = args.first
else