Module: Toolsmith::ViewHelpers::PageHeaderHelpers
- Included in:
- Toolsmith::ViewHelpers
- Defined in:
- lib/toolsmith/helpers/page_header_helpers.rb
Instance Method Summary collapse
Instance Method Details
#page_header(title, *args) {|header| ... } ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/toolsmith/helpers/page_header_helpers.rb', line 4 def page_header(title, *args, &block) = args. subtitle = args.first header = Toolsmith::Views::PageHeader.new(self, title, subtitle) yield header if block_given? full_width_column() do header.to_s end end |