Class: Opal::Environment

Inherits:
Sprockets::Environment
  • Object
show all
Defined in:
opal/lib/opal/sprockets/environment.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Environment

Returns a new instance of Environment



7
8
9
10
# File 'opal/lib/opal/sprockets/environment.rb', line 7

def initialize *args
  super
  append_opal_paths
end

Instance Method Details

#use_gem(gem_name) ⇒ Object



12
13
14
15
# File 'opal/lib/opal/sprockets/environment.rb', line 12

def use_gem gem_name
  Opal.use_gem gem_name
  append_opal_paths
end