Method: OMF::Web::Tab.use_tab

Defined in:
lib/omf-web/UNUSED/tab.rb

.use_tab(tab_id) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/omf-web/UNUSED/tab.rb', line 17

def self.use_tab(tab_id)
  tab_id = tab_id.to_sym
  unless tab = @@available_tabs[tab_id]
    raise "Unknown tab '#{tab_id}'. Need to registered first"
  end
  MObject.debug 'web:tab', "Use tab '#{tab_id}'"
  @@selected_tabs[tab_id] = tab
end