Method: Megatron::TabHelper::Tabs#tab

Defined in:
app/helpers/megatron/tab_helper.rb

#tab(text, href, options = {}, &block) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'app/helpers/megatron/tab_helper.rb', line 4

def tab(text, href, options = {}, &block)
  options[:class] = add_class(options[:class], "tab")

  if block
    link_up href, options, &block
  else
    link_up href, options do
      text
    end
  end
end