Class: LcpRuby::Presenter::BreadcrumbBuilder::Crumb
- Inherits:
-
Struct
- Object
- Struct
- LcpRuby::Presenter::BreadcrumbBuilder::Crumb
- Defined in:
- lib/lcp_ruby/presenter/breadcrumb_builder.rb
Instance Attribute Summary collapse
-
#current ⇒ Object
(also: #current?)
Returns the value of attribute current.
-
#label ⇒ Object
Returns the value of attribute label.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(label:, path: nil, current: false) ⇒ Crumb
constructor
A new instance of Crumb.
Constructor Details
#initialize(label:, path: nil, current: false) ⇒ Crumb
Returns a new instance of Crumb.
5 6 7 |
# File 'lib/lcp_ruby/presenter/breadcrumb_builder.rb', line 5 def initialize(label:, path: nil, current: false) super end |
Instance Attribute Details
#current ⇒ Object Also known as: current?
Returns the value of attribute current
4 5 6 |
# File 'lib/lcp_ruby/presenter/breadcrumb_builder.rb', line 4 def current @current end |
#label ⇒ Object
Returns the value of attribute label
4 5 6 |
# File 'lib/lcp_ruby/presenter/breadcrumb_builder.rb', line 4 def label @label end |
#path ⇒ Object
Returns the value of attribute path
4 5 6 |
# File 'lib/lcp_ruby/presenter/breadcrumb_builder.rb', line 4 def path @path end |