Class: Breadcrumbs::Render::Base
- Inherits:
-
Object
- Object
- Breadcrumbs::Render::Base
- Includes:
- ActionView::Helpers::TagHelper
- Defined in:
- lib/breadcrumbs/render/base.rb
Overview
:nodoc: all
Instance Attribute Summary collapse
-
#breadcrumbs ⇒ Object
Returns the value of attribute breadcrumbs.
-
#default_options ⇒ Object
Returns the value of attribute default_options.
-
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
Instance Method Summary collapse
-
#initialize(breadcrumbs, default_options = {}) ⇒ Base
constructor
A new instance of Base.
- #tag(name, content = "", options = {}, &block) ⇒ Object
Constructor Details
#initialize(breadcrumbs, default_options = {}) ⇒ Base
Returns a new instance of Base.
10 11 12 13 |
# File 'lib/breadcrumbs/render/base.rb', line 10 def initialize(, = {}) @breadcrumbs = @default_options = end |
Instance Attribute Details
#breadcrumbs ⇒ Object
Returns the value of attribute breadcrumbs.
8 9 10 |
# File 'lib/breadcrumbs/render/base.rb', line 8 def @breadcrumbs end |
#default_options ⇒ Object
Returns the value of attribute default_options.
8 9 10 |
# File 'lib/breadcrumbs/render/base.rb', line 8 def @default_options end |
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
8 9 10 |
# File 'lib/breadcrumbs/render/base.rb', line 8 def output_buffer @output_buffer end |
Instance Method Details
#tag(name, content = "", options = {}, &block) ⇒ Object
15 16 17 |
# File 'lib/breadcrumbs/render/base.rb', line 15 def tag(name, content = "", = {}, &block) content_tag(name, content, , &block) end |