Class: Basic101::Identifier

Inherits:
Object
  • Object
show all
Includes:
Identity
Defined in:
lib/basic101/identifier.rb

Instance Method Summary collapse

Methods included from Identity

#==

Constructor Details

#initialize(name) ⇒ Identifier

Returns a new instance of Identifier.



9
10
11
# File 'lib/basic101/identifier.rb', line 9

def initialize(name)
  @name = name.to_s
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/basic101/identifier.rb', line 13

def to_s
  @name
end