Class: ExecJS::DisabledRuntime
- Defined in:
- lib/execjs/disabled_runtime.rb
Instance Method Summary collapse
- #available? ⇒ Boolean
- #compile(source, options = {}) ⇒ Object
- #deprecated? ⇒ Boolean
- #eval(source, options = {}) ⇒ Object
- #exec(source, options = {}) ⇒ Object
- #name ⇒ Object
Methods inherited from Runtime
Instance Method Details
#available? ⇒ Boolean
25 26 27 |
# File 'lib/execjs/disabled_runtime.rb', line 25 def available? true end |
#compile(source, options = {}) ⇒ Object
17 18 19 |
# File 'lib/execjs/disabled_runtime.rb', line 17 def compile(source, = {}) raise Error, "ExecJS disabled" end |
#deprecated? ⇒ Boolean
21 22 23 |
# File 'lib/execjs/disabled_runtime.rb', line 21 def deprecated? true end |
#eval(source, options = {}) ⇒ Object
13 14 15 |
# File 'lib/execjs/disabled_runtime.rb', line 13 def eval(source, = {}) raise Error, "ExecJS disabled" end |
#exec(source, options = {}) ⇒ Object
9 10 11 |
# File 'lib/execjs/disabled_runtime.rb', line 9 def exec(source, = {}) raise Error, "ExecJS disabled" end |
#name ⇒ Object
5 6 7 |
# File 'lib/execjs/disabled_runtime.rb', line 5 def name "Disabled" end |