lib/bindata/base.rb in bindata-1.4.3 vs lib/bindata/base.rb in bindata-1.4.4
- old
+ new
@@ -249,9 +249,16 @@
def ==(other) #:nodoc:
# double dispatch
other == snapshot
end
+ # A version of +respond_to?+ used by the lazy evaluator. It doesn't
+ # reinvoke the evaluator so as to avoid infinite evaluation loops.
+ def safe_respond_to?(symbol, include_private = false) #:nodoc:
+ respond_to?(symbol, include_private)
+ end
+ alias_method :orig_respond_to?, :respond_to? #:nodoc:
+
#---------------
private
def extract_args(the_args)
self.class.arg_extractor.extract(self.class, the_args)