Class: Jav::RowBuilder
- Inherits:
-
Object
- Object
- Jav::RowBuilder
- Defined in:
- lib/jav/row_builder.rb
Instance Attribute Summary collapse
-
#items_holder ⇒ Object
readonly
Returns the value of attribute items_holder.
Class Method Summary collapse
Instance Method Summary collapse
-
#build ⇒ Object
Fetch the tab.
-
#initialize(**args) ⇒ RowBuilder
constructor
A new instance of RowBuilder.
Constructor Details
#initialize(**args) ⇒ RowBuilder
Returns a new instance of RowBuilder.
14 15 16 17 |
# File 'lib/jav/row_builder.rb', line 14 def initialize(**args) @row = Jav::Row.new(**args) @items_holder = Jav::ItemsHolder.new end |
Instance Attribute Details
#items_holder ⇒ Object (readonly)
Returns the value of attribute items_holder.
8 9 10 |
# File 'lib/jav/row_builder.rb', line 8 def items_holder @items_holder end |
Class Method Details
.parse_block(**args, &block) ⇒ Object
3 4 5 |
# File 'lib/jav/row_builder.rb', line 3 def parse_block(**args, &block) Docile.dsl_eval(new(**args), &block).build end |
Instance Method Details
#build ⇒ Object
Fetch the tab
20 21 22 23 |
# File 'lib/jav/row_builder.rb', line 20 def build @row.items_holder = @items_holder @row end |