Class: Opal::Environment Deprecated

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

Overview

Deprecated.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Environment

Returns a new instance of Environment



13
14
15
16
17
18
# File 'opal/lib/opal/sprockets/environment.rb', line 13

def initialize *args
  warn "WARNING: Opal::Sprockets::Environment is deprecated. "\
       "Please use Opal::Server directly or append Opal.paths to the environment manually."
  super
  append_opal_paths
end

Instance Method Details

#use_gem(gem_name) ⇒ Object



20
21
22
23
# File 'opal/lib/opal/sprockets/environment.rb', line 20

def use_gem gem_name
  Opal.use_gem gem_name
  append_opal_paths
end