Module: FeduxOrgStdlib::Roles::ComparableByName
- Includes:
- Comparable
- Included in:
- FixturesManagement::Fixture
- Defined in:
- lib/fedux_org_stdlib/roles/comparable_by_name.rb
Overview
Included if class can be compared by name
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
19 20 21 |
# File 'lib/fedux_org_stdlib/roles/comparable_by_name.rb', line 19 def <=>(other) name <=> other.name end |
#eql?(other) ⇒ Boolean
14 15 16 |
# File 'lib/fedux_org_stdlib/roles/comparable_by_name.rb', line 14 def eql?(other) name.eql? other.name end |
#hash ⇒ Object
9 10 11 |
# File 'lib/fedux_org_stdlib/roles/comparable_by_name.rb', line 9 def hash name.hash end |