Class: Keyitem
- Inherits:
-
Object
- Object
- Keyitem
- Defined in:
- lib/items.rb
Overview
key items
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Keyitem
constructor
A new instance of Keyitem.
Constructor Details
#initialize(name) ⇒ Keyitem
Returns a new instance of Keyitem.
50 51 52 |
# File 'lib/items.rb', line 50 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
48 49 50 |
# File 'lib/items.rb', line 48 def name @name end |