Module: V8::Conversion::Method

Includes:
Code
Included in:
UnboundMethod
Defined in:
lib/v8/conversion/method.rb

Defined Under Namespace

Classes: MethodCache

Constant Summary collapse

@@method_cache =
MethodCache.new

Instance Method Summary collapse

Methods included from Code

#to_template

Methods included from Weak::Cell

#weakcell

Instance Method Details

#to_v8Object



5
6
7
8
# File 'lib/v8/conversion/method.rb', line 5

def to_v8
  template = @@method_cache[self] ||= to_template
  template.GetFunction()
end