module Marksman::Equality
Public Instance Methods
==(other)
click to toggle source
# File lib/marksman/equality.rb, line 4 def == (other) self.class == other.class && self.attributes == other.attributes end
attributes()
click to toggle source
# File lib/marksman/equality.rb, line 8 def attributes Hash[instance_variables.map do |attribute| [attribute, instance_variable_get(attribute)] end] end