Class: Metacosm::Command

Inherits:
Object
  • Object
show all
Includes:
PassiveRecord
Defined in:
lib/metacosm.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



20
21
22
# File 'lib/metacosm.rb', line 20

def ==(other)
  attrs == other.attrs
end

#attrsObject



16
17
18
# File 'lib/metacosm.rb', line 16

def attrs
  to_h.keep_if { |k,_| k != :id }
end