Class: KDirector::Directors::Data
- Inherits:
-
Object
- Object
- KDirector::Directors::Data
- Defined in:
- lib/k_director/directors/data.rb
Overview
Data can update the underlying ActionBuilder DOM.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent, name, **opts) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(parent, name, **opts) ⇒ Data
Returns a new instance of Data.
10 11 12 13 14 15 |
# File 'lib/k_director/directors/data.rb', line 10 def initialize(parent, name, **opts) @parent = parent @name = name parent.builder.group_set(name, **opts) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/k_director/directors/data.rb', line 8 def name @name end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
7 8 9 |
# File 'lib/k_director/directors/data.rb', line 7 def parent @parent end |