Class: InMemoryStrages

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/inmemory_storage.rb

Class Method Summary collapse

Class Method Details

.build(name) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/inmemory_storage.rb', line 7

def self.build(name)
  @list ||= {}

  @list[name] ||= InMemoryStorage.new(name)

  @list[name]
end