Class: Bread

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, link, last = false) ⇒ Bread

Returns a new instance of Bread.



4
5
6
7
8
# File 'lib/lokka/bread_crumb.rb', line 4

def initialize(name, link, last = false)
  @name = name
  @link = link
  @last = last
end

Instance Attribute Details

#lastObject

Returns the value of attribute last.



2
3
4
# File 'lib/lokka/bread_crumb.rb', line 2

def last
  @last
end

Returns the value of attribute link.



2
3
4
# File 'lib/lokka/bread_crumb.rb', line 2

def link
  @link
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/lokka/bread_crumb.rb', line 2

def name
  @name
end

Instance Method Details

#last?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/lokka/bread_crumb.rb', line 10

def last?
  @last
end