class ObjectComparator::InspectionString
Public Class Methods
new(string)
click to toggle source
# File lib/object_comparator.rb, line 25 def initialize(string) @string = string end
Public Instance Methods
==(other)
click to toggle source
# File lib/object_comparator.rb, line 29 def ==(other) other.to_s == to_s end
to_s()
click to toggle source
# File lib/object_comparator.rb, line 33 def to_s @string.gsub(/:0x[a-z0-9]{14,16} /, ' ') .gsub(/:0x[a-z0-9]{14,16}>/, '>') end