Class: Adva::View::Tabs
Defined Under Namespace
Classes: Tab
Instance Method Summary
collapse
Methods inherited from Array
#flatten_once, #flatten_once!
Instance Method Details
#tab(name, &block) ⇒ Object
21
22
23
24
25
|
# File 'lib/adva/view/tabs.rb', line 21
def tab(name, &block)
tab = detect { |tab| tab.name == name }
self << tab = Tab.new(self, name) unless tab
tab.blocks << block
end
|