mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Cleanup whitespace
This commit is contained in:
parent
e707fe385b
commit
22a3e6def1
4 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ module ExecJS
|
|||
class Context < Runtime::Context
|
||||
def initialize(runtime, source = "")
|
||||
source = encode(source)
|
||||
|
||||
|
||||
@runtime = Johnson::Runtime.new
|
||||
@runtime.evaluate(source)
|
||||
end
|
||||
|
|
|
@ -94,7 +94,7 @@ module ExecJS
|
|||
def name
|
||||
"therubyracer (V8)"
|
||||
end
|
||||
|
||||
|
||||
def available?
|
||||
require "v8"
|
||||
true
|
||||
|
|
|
@ -78,7 +78,7 @@ module ExecJS
|
|||
def name
|
||||
"therubyrhino (Rhino)"
|
||||
end
|
||||
|
||||
|
||||
def available?
|
||||
require "rhino"
|
||||
true
|
||||
|
|
|
@ -12,7 +12,7 @@ module ExecJS
|
|||
def exec(source, options = {})
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
|
||||
def eval(source, options = {})
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
@ -25,7 +25,7 @@ module ExecJS
|
|||
def name
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
|
||||
def context_class
|
||||
self.class::Context
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue