Class: Nin::Item
- Inherits:
-
Object
- Object
- Nin::Item
- Defined in:
- lib/nin.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(desc) ⇒ Item
constructor
A new instance of Item.
- #to_s ⇒ Object
Constructor Details
#initialize(desc) ⇒ Item
Returns a new instance of Item.
5 6 7 |
# File 'lib/nin.rb', line 5 def initialize(desc) @desc = desc end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/nin.rb', line 3 def body @body end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/nin.rb', line 9 def to_s "#{@desc}" end |