Class: Breadcrumb

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#anchorObject (readonly)

Returns the value of attribute anchor.



4
5
6
# File 'lib/breadcrumb.rb', line 4

def anchor
  @anchor
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/breadcrumb.rb', line 4

def title
  @title
end