Module: Sprockets::Export::Store
Instance Method Summary collapse
Instance Method Details
#get(environment, filename) ⇒ Object
9 10 11 12 13 |
# File 'lib/sprockets/export/store.rb', line 9 def get(environment, filename) if mapping[environment] mapping[environment][filename] end end |
#reset ⇒ Object
15 16 17 |
# File 'lib/sprockets/export/store.rb', line 15 def reset @mapping = nil end |
#set(environment, filename, data) ⇒ Object
4 5 6 7 |
# File 'lib/sprockets/export/store.rb', line 4 def set(environment, filename, data) mapping[environment] ||= {} mapping[environment][filename] = data end |