module FeduxOrgStdlib::Roles::ComparableByName
Included if class can be compared by name
Public Instance Methods
<=>(other)
click to toggle source
@private
# File lib/fedux_org_stdlib/roles/comparable_by_name.rb, line 19 def <=>(other) name <=> other.name end
eql?(other)
click to toggle source
@private
# File lib/fedux_org_stdlib/roles/comparable_by_name.rb, line 14 def eql?(other) name.eql? other.name end
hash()
click to toggle source
@private
# File lib/fedux_org_stdlib/roles/comparable_by_name.rb, line 9 def hash name.hash end