class V8::Conversion::Method::MethodCache

Public Class Methods

new() click to toggle source
# File lib/v8/conversion/method.rb, line 11
def initialize
  @map = V8::Weak::WeakValueMap.new
end

Public Instance Methods

[](method) click to toggle source
# File lib/v8/conversion/method.rb, line 15
def [](method)
  @map[method.to_s]
end
[]=(method, template) click to toggle source
# File lib/v8/conversion/method.rb, line 19
def []=(method, template)
  @map[method.to_s] = template
end