lib/cocoa/sugarcube-anonymous/anonymous.rb in sugarcube-2.1.2 vs lib/cocoa/sugarcube-anonymous/anonymous.rb in sugarcube-2.1.3
- old
+ new
@@ -53,9 +53,14 @@
end
end
return super
end
+ def respond_to?(method_name)
+ return true if self.include?(method_name)
+ false
+ end
+
def to_object
self
end
# replace enumerable methods