Method: Formic::Tab#_initialize

Defined in:
lib/formic/tab.rb

#_initialize(title = '', options = {}, &block) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/formic/tab.rb', line 7

def _initialize title='', options={}, &block
  super options, &block
  @title = title
  self.tab_panel.tabs.push self
  self.options[:id] ||= "#{title.downcase.gsub(' ', '_')}_tab"
  return self
end