class Para::Markup::Panel
Public Instance Methods
Source
# File lib/para/markup/panel.rb, line 24 def body(options = {}, &block) merge_class!(options, "panel-body") content_tag(:div, options) do capture { block.call } end end
Source
# File lib/para/markup/panel.rb, line 4 def container(options = {}, &block) merge_class!(options, "panel") if (type = options.fetch(:type, 'default')) merge_class!(options, "panel-#{ type }") end content_tag(:div, options) do capture { block.call(self) } end end
Source
# File lib/para/markup/panel.rb, line 16 def header(options = {}, &block) merge_class!(options, "panel-heading") content_tag(:div, options) do capture { block.call } end end