Class: Navigatrix::ItemCollection
- Inherits:
-
Struct
- Object
- Struct
- Navigatrix::ItemCollection
- Extended by:
- Forwardable
- Defined in:
- lib/navigatrix/item_collection.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
-
#context ⇒ Object
Returns the value of attribute context.
Instance Method Summary collapse
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration
2 3 4 |
# File 'lib/navigatrix/item_collection.rb', line 2 def configuration @configuration end |
#context ⇒ Object
Returns the value of attribute context
2 3 4 |
# File 'lib/navigatrix/item_collection.rb', line 2 def context @context end |
Instance Method Details
#items ⇒ Object
6 7 8 |
# File 'lib/navigatrix/item_collection.rb', line 6 def items configuration.map { |name, config| Item.new(name, config, context) } end |