Class: Basic101::Identifier
- Inherits:
-
Object
- Object
- Basic101::Identifier
- Includes:
- Identity
- Defined in:
- lib/basic101/identifier.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(name) ⇒ Identifier
constructor
A new instance of Identifier.
- #to_s ⇒ Object
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_s ⇒ Object
13 14 15 |
# File 'lib/basic101/identifier.rb', line 13 def to_s @name end |