Class: BreadcrumbTrail::Builder Abstract
- Inherits:
-
Object
- Object
- BreadcrumbTrail::Builder
- Defined in:
- lib/breadcrumb_trail/builder.rb
Overview
This class is abstract.
A Builder that is used by ActionController::HelperMethods#render_breadcrumbs. This should be subclassed and implemented.
Direct Known Subclasses
Instance Method Summary collapse
-
#call ⇒ String
Renders the breadcrumbs using the builder.
-
#initialize(context, breadcrumbs, options = {}, &block) ⇒ Builder
constructor
Initialize the builder.
Constructor Details
#initialize(context, breadcrumbs, options = {}, &block) ⇒ Builder
Initialize the builder.
17 18 19 20 21 22 |
# File 'lib/breadcrumb_trail/builder.rb', line 17 def initialize(context, , = {}, &block) @context = context = = @block = block end |
Instance Method Details
#call ⇒ String
Renders the breadcrumbs using the builder. However, since this is the base, it raises an error.
29 30 31 |
# File 'lib/breadcrumb_trail/builder.rb', line 29 def call raise NotImplementedError end |