Sha256: 161788be48b6d86563d775fd1bce0081e489023aea587f05b5120782b5ea51e9
Contents?: true
Size: 360 Bytes
Versions: 12
Compression:
Stored size: 360 Bytes
Contents
module Natour class Species attr_reader :name attr_reader :name_de def initialize(name, name_de) @name = name @name_de = name_de end include Comparable def <=>(other) [@name, @name_de] <=> [other.name, other.name_de] end def hash [@name, @name_de].hash end alias eql? == end end
Version data entries
12 entries across 12 versions & 1 rubygems