Class: LcpRuby::Presenter::BreadcrumbBuilder::Crumb

Inherits:
Struct
  • Object
show all
Defined in:
lib/lcp_ruby/presenter/breadcrumb_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#currentObject Also known as: current?

Returns the value of attribute current

Returns:

  • (Object)

    the current value of current



4
5
6
# File 'lib/lcp_ruby/presenter/breadcrumb_builder.rb', line 4

def current
  @current
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



4
5
6
# File 'lib/lcp_ruby/presenter/breadcrumb_builder.rb', line 4

def label
  @label
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



4
5
6
# File 'lib/lcp_ruby/presenter/breadcrumb_builder.rb', line 4

def path
  @path
end