class V8::Conversion::Constructor

Public Class Methods

new(cls) click to toggle source
# File lib/v8/conversion/class.rb, line 22
def initialize(cls)
  @class = cls
end

Public Instance Methods

call(arguments) click to toggle source
# File lib/v8/conversion/class.rb, line 26
def call(arguments)
  arguments.extend Args
  protect do
    if arguments.linkage_call?
      arguments.link
    else
      arguments.construct @class
    end
  end
  return arguments.This()
end