Class: BootstrapHelper::TabBuilder
- Inherits:
-
Object
- Object
- BootstrapHelper::TabBuilder
- Defined in:
- app/helpers/bootstrap_helper.rb
Instance Attribute Summary collapse
-
#tabs ⇒ Object
Returns the value of attribute tabs.
Instance Method Summary collapse
Instance Attribute Details
#tabs ⇒ Object
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 |