Class: AIPP::Environment::Cache

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/aipp/environment.rb

Overview

Cache to store transient objects

Direct Known Subclasses

Borders, Config, Fixtures, Options

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



26
27
28
# File 'lib/aipp/environment.rb', line 26

def [](key)
  super(key.to_s.to_sym)
end

#merge(hash) ⇒ Object



34
35
36
# File 'lib/aipp/environment.rb', line 34

def merge(hash)
  @table.merge! hash
end

#replace(hash) ⇒ Object



30
31
32
# File 'lib/aipp/environment.rb', line 30

def replace(hash)
  @table = hash
end