Class: Breadcrumb
- Inherits:
-
Object
- Object
- Breadcrumb
- Defined in:
- lib/breadcrumb.rb
Instance Attribute Summary collapse
-
#anchor ⇒ Object
readonly
Returns the value of attribute anchor.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title:, anchor:) ⇒ Breadcrumb
constructor
A new instance of Breadcrumb.
Constructor Details
#initialize(title:, anchor:) ⇒ Breadcrumb
Returns a new instance of Breadcrumb.
6 7 8 9 |
# File 'lib/breadcrumb.rb', line 6 def initialize(title:, anchor:) @title = title @anchor = anchor end |
Instance Attribute Details
#anchor ⇒ Object (readonly)
Returns the value of attribute anchor.
4 5 6 |
# File 'lib/breadcrumb.rb', line 4 def anchor @anchor end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/breadcrumb.rb', line 4 def title @title end |