Class: Gretel::Parent

Inherits:
Object
  • Object
show all
Defined in:
lib/gretel/parent.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/gretel/parent.rb', line 3

def name
  @name
end

#objectObject

Returns the value of attribute object.



3
4
5
# File 'lib/gretel/parent.rb', line 3

def object
  @object
end