Class: Object

Inherits:
BasicObject
Defined in:
lib/v8/tap.rb,
lib/v8/object.rb

Instance Method Summary collapse

Instance Method Details

#eval_js(javascript) ⇒ Object



66
67
68
# File 'lib/v8/object.rb', line 66

def eval_js(javascript)
  V8::Context.new(:with => self).eval(javascript)
end

#tap {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



4
5
6
7
# File 'lib/v8/tap.rb', line 4

def tap
  yield self
  return self
end