### Home Classes Methods

### In Files

- lib/v8/conversion/class.rb

### Methods

- #construct
- #context
- #link
- #linkage_call?
- #to_args

### Files

- Makefile

### Class/Module Index

Quicksearch

- V8
- V8::Access
- V8::Access::Indices
- V8::Access::Invocation
- V8::Access::Invocation::Aritize
- V8::Access::Invocation::Method
- V8::Access::Invocation::Proc
- V8::Access::Invocation::UnboundMethod
- V8::Access::Names
- V8::Array
- V8::C
- V8::Conversion
- V8::Conversion::Accessor
- V8::Conversion::Array
- V8::Conversion::Class
- V8::Conversion::Code
- V8::Conversion::Code::InvocationHandler
- V8::Conversion::Constructor
- V8::Conversion::Constructor::Args
- V8::Conversion::Fixnum
- V8::Conversion::Fundamental
- V8::Conversion::Get
- V8::Conversion::Hash
- V8::Conversion::IGet
- V8::Conversion::ISet
- V8::Conversion::Identity
- V8::Conversion::Method
- V8::Conversion::Method::MethodCache
- V8::Conversion::NativeDate
- V8::Conversion::NativeObject
- V8::Conversion::NativeString
- V8::Conversion::Object
- V8::Conversion::Primitive
- V8::Conversion::Proc
- V8::Conversion::Reference
- V8::Conversion::Set
- V8::Conversion::String
- V8::Conversion::Symbol
- V8::Conversion::Time
- V8::Error
- V8::Error::Protect
- V8::Error::Try
- V8::Function
- V8::Object
- V8::StackFrame
- V8::StackTrace
- V8::Weak
- V8::Weak::Cell
- V8::Weak::Cell::Storage
- V8::Weak::Ref
- V8::Weak::WeakValueMap
- Object
- UnboundMethod

No matching classes.

# V8::Conversion::Constructor::Args

### Public Instance Methods

construct(cls) click to toggle source

    # File lib/v8/conversion/class.rb, line 49
    def construct(cls)
      context.link cls.new(*to_args), This()
    end

context() click to toggle source

    # File lib/v8/conversion/class.rb, line 53
    def context
      V8::Context.current
    end

link() click to toggle source

    # File lib/v8/conversion/class.rb, line 43
    def link
      external = self[0]
      This().SetHiddenValue("rr::implementation", external)
      context.link external.Value(), This()
    end

linkage_call?() click to toggle source

    # File lib/v8/conversion/class.rb, line 39
    def linkage_call?
      self.Length() == 1 && self[0].IsExternal()
    end

to_args() click to toggle source

    # File lib/v8/conversion/class.rb, line 57
    def to_args
      args = ::Array.new(Length())
      0.upto(args.length - 1) do |i|
        args[i] = self[i]
      end
      return args
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.