Module: Mustang
- Extended by:
- Delegated
- Defined in:
- lib/mustang.rb,
lib/mustang/errors.rb,
lib/mustang/context.rb,
lib/mustang/v8/date.rb,
lib/mustang/v8/array.rb,
lib/mustang/v8/error.rb,
lib/mustang/v8/number.rb,
lib/mustang/v8/object.rb,
lib/mustang/v8/regexp.rb,
lib/mustang/v8/string.rb,
lib/mustang/v8/context.rb,
lib/mustang/v8/integer.rb,
lib/mustang/v8/external.rb,
lib/mustang/v8/function.rb,
ext/v8/v8_main.cpp
Defined Under Namespace
Modules: V8 Classes: Context, Errors, ScriptNotFoundError
Class Method Summary collapse
- .delegate ⇒ Object
- .global ⇒ Object
-
.reset!(*args, &block) ⇒ Object
Resets global context state (just creates new global context and enters to it).
Methods included from Delegated
method_missing, old_method_missing, old_respond_to?, respond_to?, to_s
Class Method Details
.delegate ⇒ Object
25 26 27 |
# File 'lib/mustang.rb', line 25 def self.delegate global end |
.global ⇒ Object
29 30 31 |
# File 'lib/mustang.rb', line 29 def self.global @global or reset! end |
.reset!(*args, &block) ⇒ Object
Resets global context state (just creates new global context and enters to it).
34 35 36 |
# File 'lib/mustang.rb', line 34 def self.reset!(*args, &block) @global = Context.new(*args, &block) end |