Class: ControlCenter::TabBuilder
- Inherits:
-
Object
- Object
- ControlCenter::TabBuilder
- Defined in:
- lib/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
4 5 6 |
# File 'lib/tab_builder.rb', line 4 def initialize(&block) @block = block end |
Instance Method Details
#tab(tab_name, url) ⇒ Object
8 9 10 |
# File 'lib/tab_builder.rb', line 8 def tab(tab_name, url) @block.call(tab_name, url) end |