lib/cocoa/sugarcube-anonymous/anonymous.rb in sugarcube-2.5.0 vs lib/cocoa/sugarcube-anonymous/anonymous.rb in sugarcube-2.6.0
- old
+ new
@@ -53,11 +53,12 @@
end
end
return super
end
+ alias_method :hash_respond_to?, :respond_to?
def respond_to?(method_name)
- return true if self.include?(method_name)
+ return true if self.include?(method_name) or hash_respond_to?(method_name)
false
end
def to_object
self