Namespace

Methods

Files

V8::Util::Weakcell

Public Instance Methods

weakcell(name, &block) click to toggle source
# File lib/v8/util/weakcell.rb, line 4
def weakcell(name, &block)
  unless storage = instance_variable_get("@#{name}")
    storage = instance_variable_set("@#{name}", Storage.new)
  end
  storage.access(&block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.