Module: MM::SimpleHashable

Included in:
Console::Card::Context, Console::View::Context
Defined in:
lib/mm/utils.rb

Instance Method Summary collapse

Instance Method Details

#eql?(another) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/mm/utils.rb', line 3

def eql?(another)
  to_s == another.to_s
end

#hashObject



7
8
9
# File 'lib/mm/utils.rb', line 7

def hash
  to_s.hash
end