Module: H8

Defined in:
lib/h8/tools.rb,
lib/h8/value.rb,
lib/h8/coffee.rb,
lib/h8/errors.rb,
lib/h8/command.rb,
lib/h8/version.rb,
ext/h8/main.cpp,
lib/h8/context.rb

Defined Under Namespace

Classes: Coffee, Command, Context, Error, JsError, NestedError, ProcGate, RubyGate, TimeoutError, UndefinedClass, Value

Constant Summary collapse

Undefined =

The constant representing ‘undefined’ value in Javascript The proper use is to compare returned value res == H8::Undefined

UndefinedClass.instance
VERSION =
"0.5.5"

Class Method Summary collapse

Class Method Details

.arguments_to_a(args) ⇒ Object

Convert javascript ‘arguments’ object to ruby array



40
41
42
43
44
# File 'lib/h8/tools.rb', line 40

def arguments_to_a args
  res = Array.new(l=args.length)
  l.times { |n| res[n] = args[n] }
  res
end