Class: ControlCenter::TabBuilder

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

Instance Method Summary collapse

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