Class: ActivoateHelper::ControlsBuilder

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
app/helpers/activoate_helper.rb

Overview

Assists in the creation of control bars

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeControlsBuilder

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_listObject (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(button)
  item_list << button
end