Class: Yello::Base
- Inherits:
-
Object
- Object
- Yello::Base
- Defined in:
- lib/yello/base.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(name) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(name) ⇒ Base
Returns a new instance of Base.
5 6 7 |
# File 'lib/yello/base.rb', line 5 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/yello/base.rb', line 3 def name @name end |
Instance Method Details
#attributes ⇒ Object
9 10 11 |
# File 'lib/yello/base.rb', line 9 def attributes {'name'=>name} end |