class Croutons::Breadcrumb

Attributes

label[RW]
url[RW]

Public Class Methods

new(label, url = nil) click to toggle source
# File lib/croutons/breadcrumb.rb, line 5
def initialize(label, url = nil)
  self.label = label
  self.url = url
end

Public Instance Methods

==(other) click to toggle source
# File lib/croutons/breadcrumb.rb, line 18
def ==(other)
  label == other.label && url == other.url
end
labelize() click to toggle source
# File lib/croutons/breadcrumb.rb, line 10
def labelize
  self.url = nil
end