Class: Seiten::HTML::Breadcrumb
- Inherits:
-
Object
- Object
- Seiten::HTML::Breadcrumb
- Defined in:
- lib/seiten/html/breadcrumb.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(view_context, page:, separator: '>', html: {}) ⇒ Breadcrumb
constructor
A new instance of Breadcrumb.
Constructor Details
#initialize(view_context, page:, separator: '>', html: {}) ⇒ Breadcrumb
Returns a new instance of Breadcrumb.
6 7 8 9 10 11 12 |
# File 'lib/seiten/html/breadcrumb.rb', line 6 def initialize(view_context, page:, separator: '>', html: {}) @view_context = view_context @current_page = page @separator = separator @html_options = Seiten.config[:html].deep_merge(html || {}) @body = if @current_page end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/seiten/html/breadcrumb.rb', line 4 def body @body end |