Class: BreadcrumbsOnRails::Breadcrumbs::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/breadcrumbs_on_rails/breadcrumbs.rb

Overview

Element

Represents a navigation element (probably a breadcrumb level) in the breadcrumb collection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path) ⇒ Element

Returns a new instance of Element.



130
131
132
133
# File 'lib/breadcrumbs_on_rails/breadcrumbs.rb', line 130

def initialize(name, path)
  self.name = name
  self.path = path
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



128
129
130
# File 'lib/breadcrumbs_on_rails/breadcrumbs.rb', line 128

def name
  @name
end

#pathObject

Returns the value of attribute path.



128
129
130
# File 'lib/breadcrumbs_on_rails/breadcrumbs.rb', line 128

def path
  @path
end