Class: Himari::ItemProviders::Static

Inherits:
Object
  • Object
show all
Includes:
Himari::ItemProvider
Defined in:
lib/himari/item_providers/static.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items) ⇒ Static

Returns a new instance of Static.

Parameters:

  • items (Array<Object>)

    List of static configuration items



9
10
11
# File 'lib/himari/item_providers/static.rb', line 9

def initialize(items)
  @items = items.dup.freeze
end

Instance Attribute Details

#itemsObject (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