Class: ControlCenter::Helpers::TabBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/control_center/helpers/tab_builder.rb

Instance Method Summary collapse

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