Class: Jav::PanelBuilder
- Inherits:
-
Object
- Object
- Jav::PanelBuilder
- Defined in:
- lib/jav/panel_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(name: nil, **args) ⇒ PanelBuilder
constructor
A new instance of PanelBuilder.
Constructor Details
#initialize(name: nil, **args) ⇒ PanelBuilder
Returns a new instance of PanelBuilder.
15 16 17 18 |
# File 'lib/jav/panel_builder.rb', line 15 def initialize(name: nil, **args) @panel = Jav::Panel.new(name: name, **args) @items_holder = Jav::ItemsHolder.new end |
Instance Attribute Details
#items_holder ⇒ Object (readonly)
Returns the value of attribute items_holder.
13 14 15 |
# File 'lib/jav/panel_builder.rb', line 13 def items_holder @items_holder end |
Class Method Details
.parse_block(**args, &block) ⇒ Object
3 4 5 |
# File 'lib/jav/panel_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
21 22 23 24 |
# File 'lib/jav/panel_builder.rb', line 21 def build @panel.items_holder = @items_holder @panel end |