Method: Manifester::Manifest#lookup
- Defined in:
- lib/manifester/manifest.rb
#lookup(name, pack_type = {}) ⇒ Object
Computes the relative path for a given Manifester asset using manifest.json. If no asset is found, returns nil.
Example:
Manifester.manifest.lookup('calendar.js') # => "/packs/calendar-1016838bab065ae1e122.js"
33 34 35 |
# File 'lib/manifester/manifest.rb', line 33 def lookup(name, pack_type = {}) find(full_pack_name(name, pack_type[:type])) end |