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

Version Path
natour-0.12.0 lib/natour/species.rb
natour-0.11.0 lib/natour/species.rb
natour-0.10.0 lib/natour/species.rb
natour-0.9.0 lib/natour/species.rb
natour-0.8.0 lib/natour/species.rb
natour-0.7.0 lib/natour/species.rb
natour-0.6.0 lib/natour/species.rb
natour-0.5.0 lib/natour/species.rb
natour-0.4.0 lib/natour/species.rb
natour-0.3.0 lib/natour/species.rb
natour-0.2.0 lib/natour/species.rb
natour-0.1.0 lib/natour/species.rb