Class: Panda::Core::Breadcrumb
- Inherits:
-
Object
- Object
- Panda::Core::Breadcrumb
- Defined in:
- app/models/panda/core/breadcrumb.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
(also: #label)
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ Breadcrumb
constructor
A new instance of Breadcrumb.
Constructor Details
#initialize(name, path) ⇒ Breadcrumb
Returns a new instance of Breadcrumb.
8 9 10 11 |
# File 'app/models/panda/core/breadcrumb.rb', line 8 def initialize(name, path) @name = name @path = path end |
Instance Attribute Details
#name ⇒ Object (readonly) Also known as: label
Returns the value of attribute name.
6 7 8 |
# File 'app/models/panda/core/breadcrumb.rb', line 6 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'app/models/panda/core/breadcrumb.rb', line 6 def path @path end |