class Tabnav::Navbar
Attributes
tab_content_partial[W]
Optionally specifies a partial to be used to render the tab content.
Public Instance Methods
add_tab(options = {}, &block)
click to toggle source
Private Instance Methods
add_item(klass, options) { |i| ... }
click to toggle source
# File lib/tabnav/navbar.rb, line 44 def add_item(klass, options) options[:tab_content_partial] = @tab_content_partial if @tab_content_partial i = klass.new(@template, @params, options) yield i @tabs << i end
render_tab()
click to toggle source
Calls superclass method
# File lib/tabnav/navbar.rb, line 51 def render_tab super + render_navbar end