class Card::LazyTab
Public Instance Methods
content()
click to toggle source
# File lib/card/lazy_tab.rb, line 28 def content @content ||= "" 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