lib/bindata/base.rb in bindata-1.4.1 vs lib/bindata/base.rb in bindata-1.4.2
- old
+ new
@@ -212,9 +212,14 @@
# Work with Ruby's pretty-printer library.
def pretty_print(pp) #:nodoc:
pp.pp(snapshot)
end
+ # Override and delegate =~ as it is defined in Object.
+ def =~(other)
+ snapshot =~ other
+ end
+
# Returns a user friendly name of this object for debugging purposes.
def debug_name
if @parent
@parent.debug_name_of(self)
else