Class: Opal::Sprockets::Environment
- Inherits:
-
Sprockets::Environment
- Object
- Sprockets::Environment
- Opal::Sprockets::Environment
- Defined in:
- lib/opal/sprockets/environment.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Environment
constructor
A new instance of Environment.
- #use_gem(gem_name) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Environment
Returns a new instance of Environment.
6 7 8 9 |
# File 'lib/opal/sprockets/environment.rb', line 6 def initialize *args super append_opal_paths end |
Instance Method Details
#use_gem(gem_name) ⇒ Object
11 12 13 14 |
# File 'lib/opal/sprockets/environment.rb', line 11 def use_gem gem_name Opal.use_gem gem_name append_opal_paths end |