Class: ControlCenter::Helpers::TabBuilder
- Inherits:
-
Object
- Object
- ControlCenter::Helpers::TabBuilder
- Defined in:
- lib/control_center/helpers/tab_builder.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ TabBuilder
constructor
A new instance of TabBuilder.
- #tab(tab_name, url) ⇒ Object
Constructor Details
#initialize(&block) ⇒ TabBuilder
Returns a new instance of TabBuilder.
5 6 7 |
# File 'lib/control_center/helpers/tab_builder.rb', line 5 def initialize(&block) @block = block end |
Instance Method Details
#tab(tab_name, url) ⇒ Object
9 10 11 |
# File 'lib/control_center/helpers/tab_builder.rb', line 9 def tab(tab_name, url) @block.call(tab_name, url) end |