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