Class: Metacosm::Command
- Inherits:
-
Object
- Object
- Metacosm::Command
- 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 |
#attrs ⇒ Object
16 17 18 |
# File 'lib/metacosm.rb', line 16 def attrs to_h.keep_if { |k,_| k != :id } end |