Class: RablRails::Nodes::Child

Inherits:
Glue
  • Object
show all
Defined in:
lib/rabl-rails/nodes/child.rb

Direct Known Subclasses

Fetch

Instance Attribute Summary collapse

Attributes inherited from Glue

#data, #nodes

Instance Method Summary collapse

Methods inherited from Glue

#instance_variable_data?

Constructor Details

#initialize(name, template) ⇒ Child

Returns a new instance of Child.



6
7
8
9
# File 'lib/rabl-rails/nodes/child.rb', line 6

def initialize(name, template)
  super(template)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/rabl-rails/nodes/child.rb', line 4

def name
  @name
end