Class Sprockets::Environment
In: lib/sprockets/environment.rb
Parent: Base

Methods

expire_index!   find_asset   index   new  

Public Class methods

`Environment` should initialized with your application‘s root directory. This should be the same as your Rails or Rack root.

    env = Environment.new(Rails.root)

Public Instance methods

Returns a cached version of the environment.

All its file system calls are cached which makes `index` much faster. This behavior is ideal in production since the file system only changes between deploys.

Protected Instance methods

[Validate]