Exception: RequirejsOptimizer::Errors::UnknownJavaScriptRuntime

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/requirejs_optimizer/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(runtime) ⇒ UnknownJavaScriptRuntime

Returns a new instance of UnknownJavaScriptRuntime.



14
15
16
# File 'lib/requirejs_optimizer/errors.rb', line 14

def initialize(runtime)
  @runtime = runtime
end

Instance Method Details

#messageObject



18
19
20
# File 'lib/requirejs_optimizer/errors.rb', line 18

def message
  "Unknown runtime: #{@runtime}.  Available runtimes: 'node' or 'rhino'"
end