Class: Loaf::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/loaf/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view_context, collection, options = {}) ⇒ Builder


6
7
8
9
10
11
12
13
# File 'lib/loaf/builder.rb', line 6

def initialize(view_context, collection, options = {})

  @params = default_options.merge(options)

  set_breadcrumbs

  build @params
end

Instance Attribute Details

#crumbsObject

Returns the value of attribute crumbs


4
5
6
# File 'lib/loaf/builder.rb', line 4

def crumbs
  @crumbs
end