lib/sprockets/environment.rb in sprockets-4.0.0.beta2 vs lib/sprockets/environment.rb in sprockets-4.0.0.beta3

- old
+ new

@@ -1,12 +1,13 @@ +# frozen_string_literal: true require 'sprockets/base' require 'sprockets/cache/memory_store' require 'sprockets/cached_environment' module Sprockets class Environment < Base - # `Environment` should initialized with your application's root + # `Environment` should be initialized with your application's root # directory. This should be the same as your Rails or Rack root. # # env = Environment.new(Rails.root) # def initialize(root = ".") @@ -16,10 +17,10 @@ yield self if block_given? end # Returns a cached version of the environment. # - # All its file system calls are cached which makes `cached` much + # All of its file system calls are cached which makes `cached` much # faster. This behavior is ideal in production since the file # system only changes between deploys. def cached CachedEnvironment.new(self) end