Class: Parcels::Sprockets::StaticCompilerEnvProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/parcels/sprockets.rb

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ StaticCompilerEnvProxy

Returns a new instance of StaticCompilerEnvProxy.



89
90
91
# File 'lib/parcels/sprockets.rb', line 89

def initialize(env)
  @env = env
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



101
102
103
# File 'lib/parcels/sprockets.rb', line 101

def method_missing(name, *args, &block)
  @env.send(name, *args, &block)
end

Instance Method Details

#each_logical_path(*args, &block) ⇒ Object



93
94
95
96
97
98
99
# File 'lib/parcels/sprockets.rb', line 93

def each_logical_path(*args, &block)
  @env.each_logical_path(*args) do |logical_path|
    unless ::Parcels.is_fortitude_logical_path?(logical_path)
      block.call(logical_path)
    end
  end
end