Class: Gretel::Parent
- Inherits:
-
Object
- Object
- Gretel::Parent
- Defined in:
- lib/gretel/parent.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(name, object) ⇒ Parent
constructor
A new instance of Parent.
Constructor Details
#initialize(name, object) ⇒ Parent
Returns a new instance of Parent.
5 6 7 |
# File 'lib/gretel/parent.rb', line 5 def initialize(name, object) @name, @object = name, object end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/gretel/parent.rb', line 3 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
3 4 5 |
# File 'lib/gretel/parent.rb', line 3 def object @object end |