Class: Proscenium::UI::Breadcrumbs::Element

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

Overview

Represents a navigation element in the breadcrumb collection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path = nil, options = {}) ⇒ Element

Parameters:

  • name (String)

    the element/link name

  • path (String) (defaults to: nil)

    the element/link URL

  • options (Hash) (defaults to: {})

    the element/link options



65
66
67
68
69
# File 'lib/proscenium/ui/breadcrumbs.rb', line 65

def initialize(name, path = nil, options = {})
  self.name = name
  self.path = path
  self.options = options
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



59
60
61
# File 'lib/proscenium/ui/breadcrumbs.rb', line 59

def name
  @name
end

#optionsObject

Returns the value of attribute options.



59
60
61
# File 'lib/proscenium/ui/breadcrumbs.rb', line 59

def options
  @options
end

#pathObject

Returns the value of attribute path.



59
60
61
# File 'lib/proscenium/ui/breadcrumbs.rb', line 59

def path
  @path
end