Class: Breadcrumbs::Render::Base

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TagHelper
Defined in:
lib/breadcrumbs/render/base.rb

Overview

:nodoc: all

Direct Known Subclasses

Inline, List

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {})
  @breadcrumbs = breadcrumbs
  @default_options = default_options
end

Instance Attribute Details

Returns the value of attribute breadcrumbs.



8
9
10
# File 'lib/breadcrumbs/render/base.rb', line 8

def breadcrumbs
  @breadcrumbs
end

#default_optionsObject

Returns the value of attribute default_options.



8
9
10
# File 'lib/breadcrumbs/render/base.rb', line 8

def default_options
  @default_options
end

#output_bufferObject

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 = "", options = {}, &block)
  (name, content, options, &block)
end