Class: Loaf::Crumb

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

Overview

Basic crumb container

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, url, options = {}) ⇒ Crumb


12
13
14
15
16
# File 'lib/loaf/crumb.rb', line 12

def initialize(name, url, options = {})
  @name  = name
  @url   = url
  @force = options.fetch(:force) { false }
end

Instance Attribute Details

#forceObject (readonly)

Returns the value of attribute force


10
11
12
# File 'lib/loaf/crumb.rb', line 10

def force
  @force
end

#nameObject (readonly)

Returns the value of attribute name


6
7
8
# File 'lib/loaf/crumb.rb', line 6

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url


8
9
10
# File 'lib/loaf/crumb.rb', line 8

def url
  @url
end