class Card::LazyTab

Public Instance Methods

button_attrib() click to toggle source
Calls superclass method
# File lib/card/lazy_tab.rb, line 19
def button_attrib
  @button_attrib ||= super.merge("data-url" => url.html_safe)
end
content() click to toggle source
# File lib/card/lazy_tab.rb, line 28
def content
  @content ||= ""
end
tab_button() click to toggle source
Calls superclass method
# File lib/card/lazy_tab.rb, line 11
def tab_button
  if url
    super
  else
    wrap_with(:li, label, role: "presentation")
  end
end
tab_pane(args=nil) { || ... } click to toggle source
Calls superclass method
# File lib/card/lazy_tab.rb, line 32
def tab_pane args=nil, &block
  @content = yield if active? && block_given?
  super
end
url() click to toggle source
# File lib/card/lazy_tab.rb, line 3
def url
  @url ||= (config_hash? && @config[:path]) || format.path(view: view)
end
view() click to toggle source
# File lib/card/lazy_tab.rb, line 7
def view
  @view ||= (config_hash? && @config[:view]) || @config
end