Class: ActivoateHelper::ControlsBuilder
- Inherits:
-
Object
- Object
- ActivoateHelper::ControlsBuilder
- Includes:
- Enumerable
- Defined in:
- app/helpers/activoate_helper.rb
Overview
Assists in the creation of control bars
Instance Attribute Summary collapse
-
#item_list ⇒ Object
readonly
Returns the value of attribute item_list.
Instance Method Summary collapse
- #each(&blk) ⇒ Object
-
#initialize ⇒ ControlsBuilder
constructor
A new instance of ControlsBuilder.
- #item(button) ⇒ Object
Constructor Details
#initialize ⇒ ControlsBuilder
Returns a new instance of ControlsBuilder.
309 310 311 |
# File 'app/helpers/activoate_helper.rb', line 309 def initialize @item_list = [] end |
Instance Attribute Details
#item_list ⇒ Object (readonly)
Returns the value of attribute item_list.
306 307 308 |
# File 'app/helpers/activoate_helper.rb', line 306 def item_list @item_list end |
Instance Method Details
#each(&blk) ⇒ Object
313 314 315 |
# File 'app/helpers/activoate_helper.rb', line 313 def each(&blk) item_list.each(&blk) end |
#item(button) ⇒ Object
317 318 319 |
# File 'app/helpers/activoate_helper.rb', line 317 def item() item_list << end |