Class: RablRails::Nodes::Child
- Defined in:
- lib/rabl-rails/nodes/child.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Glue
Instance Method Summary collapse
-
#initialize(name, template) ⇒ Child
constructor
A new instance of Child.
Methods inherited from Glue
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/rabl-rails/nodes/child.rb', line 4 def name @name end |