class Sprockets::Context::ENVProxy
Internal: Proxy for ENV that keeps track of the environment variables used
Public Class Methods
new(context)
click to toggle source
Calls superclass method
# File lib/sprockets/context.rb, line 24 def initialize(context) @context = context super(ENV) end
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/sprockets/context.rb, line 29 def [](key) @context.depend_on_env(key) super end
fetch(key, *)
click to toggle source
Calls superclass method
# File lib/sprockets/context.rb, line 34 def fetch(key, *) @context.depend_on_env(key) super end