Module: Basic101::Identity

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



7
8
9
10
# File 'lib/basic101/identity.rb', line 7

def ==(other)
  return false unless other.is_a?(self.class)
  self.state == other.state
end