Class: Himari::ItemProviders::Static
- Inherits:
-
Object
- Object
- Himari::ItemProviders::Static
- Includes:
- Himari::ItemProvider
- Defined in:
- lib/himari/item_providers/static.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
- #collect(**_hint) ⇒ Object
-
#initialize(items) ⇒ Static
constructor
A new instance of Static.
Constructor Details
#initialize(items) ⇒ Static
Returns a new instance of Static.
9 10 11 |
# File 'lib/himari/item_providers/static.rb', line 9 def initialize(items) @items = items.dup.freeze end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
13 14 15 |
# File 'lib/himari/item_providers/static.rb', line 13 def items @items end |
Instance Method Details
#collect(**_hint) ⇒ Object
15 16 17 |
# File 'lib/himari/item_providers/static.rb', line 15 def collect(**_hint) @items end |