Class: Crumpet::Crumb
- Inherits:
-
Object
- Object
- Crumpet::Crumb
- Defined in:
- lib/crumpet/crumb.rb
Instance Attribute Summary collapse
-
#item_options ⇒ Object
readonly
Returns the value of attribute item_options.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#wrapper_options ⇒ Object
readonly
Returns the value of attribute wrapper_options.
Instance Method Summary collapse
-
#initialize(name, *args) ⇒ Crumb
constructor
A new instance of Crumb.
Constructor Details
#initialize(name, *args) ⇒ Crumb
Returns a new instance of Crumb.
5 6 7 8 9 10 11 |
# File 'lib/crumpet/crumb.rb', line 5 def initialize(name, *args) @options = args. @item_options = @options.delete(:item_options) || {} @wrapper_options = @options.delete(:wrapper_options) || {} @name = name @url = args.first end |
Instance Attribute Details
#item_options ⇒ Object (readonly)
Returns the value of attribute item_options.
3 4 5 |
# File 'lib/crumpet/crumb.rb', line 3 def @item_options end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/crumpet/crumb.rb', line 3 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/crumpet/crumb.rb', line 3 def @options end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/crumpet/crumb.rb', line 3 def url @url end |
#wrapper_options ⇒ Object (readonly)
Returns the value of attribute wrapper_options.
3 4 5 |
# File 'lib/crumpet/crumb.rb', line 3 def @wrapper_options end |