Sha256: 65c1561a4bd6b658a505fb0afa297f5d44d141a4b5e11a8a2c760d2d00225138
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 Bytes
Contents
module Sprockets::Export::Namespace extend self def save(environment, filename, namespace) mapping[environment] ||= {} mapping[environment][filename] = namespace end def find(environment, filename) if mapping[environment] mapping[environment][filename] end end def reset @mapping = nil end private def mapping @mapping ||= {} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sprockets-export-0.9.1 | lib/sprockets/export/namespace.rb |
sprockets-export-0.9.0 | lib/sprockets/export/namespace.rb |