Module: Basic101::Identity

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



5
6
7
8
# File 'lib/basic101/identity.rb', line 5

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