Class: BootstrapHelper::TabBuilder

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/bootstrap_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tabsObject

Returns the value of attribute tabs.



4
5
6
# File 'app/helpers/bootstrap_helper.rb', line 4

def tabs
  @tabs
end

Instance Method Details

#tab(name, opts = {}, &block) ⇒ Object



6
7
8
9
# File 'app/helpers/bootstrap_helper.rb', line 6

def tab name, opts={}, &block
  @tabs ||= []
  @tabs << {:name=>name, :opts=>opts, :proc=>block}
end