Module: Listable::ViewMethods
- Defined in:
- lib/listable.rb
Instance Method Summary collapse
Instance Method Details
#eql?(result) ⇒ Boolean
30 31 32 33 |
# File 'lib/listable.rb', line 30 def eql?(result) listable_type == result.listable_type and listable_id == result.listable_id end |
#hash ⇒ Object
26 27 28 |
# File 'lib/listable.rb', line 26 def hash listable_id.hash + listable_type.hash end |
#readonly? ⇒ Boolean
35 36 37 |
# File 'lib/listable.rb', line 35 def readonly? true end |