Class: Ducktrails::ViewHelpers::Breadcrumber

Inherits:
Tag
  • Object
show all
Defined in:
lib/ducktrails/view_helpers.rb

Instance Method Summary collapse

Methods inherited from Tag

#partial_path, #to_s

Constructor Details

#initialize(options = {}) ⇒ Breadcrumber

Returns a new instance of Breadcrumber.



9
10
11
12
# File 'lib/ducktrails/view_helpers.rb', line 9

def initialize(options = {})
  @template = options[:template]
  @output_buffer = ActionView::OutputBuffer.new
end

Instance Method Details

#render(&block) ⇒ Object



14
15
16
# File 'lib/ducktrails/view_helpers.rb', line 14

def render(&block)
  @output_buffer
end