Module: PanelHelper

Includes:
ActionView::Helpers
Included in:
BootstrapFormHelper
Defined in:
app/helpers/panel_helper.rb

Defined Under Namespace

Classes: PanelCreator

Instance Method Summary collapse

Instance Method Details

#panel(content_or_options = nil, options = {}, &block) ⇒ Object



73
74
75
76
77
# File 'app/helpers/panel_helper.rb', line 73

def panel(content_or_options=nil, options={}, &block)
  content_or_options.is_a?(Hash) ? options = content_or_options : content = content_or_options

  PanelCreator.new(content, options, capture(&block)).render
end