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.
7 8 9 |
# File 'lib/basic101/identifier.rb', line 7 def initialize(name) @name = name.to_s end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/basic101/identifier.rb', line 11 def to_s @name end |