### Home Classes Methods

### In Files

- lib/v8/stack.rb

### Parent

Object

### Methods

- ::new
- #column
- #constructor?
- #eval?
- #function_name
- #line_number
- #script_name
- #to_s

### 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::StackFrame

### Public Class Methods

new(native, context) click to toggle source

    # File lib/v8/stack.rb, line 34
    def initialize(native, context)
      @context = context
      @native = native
    end

### Public Instance Methods

column() click to toggle source

    # File lib/v8/stack.rb, line 57
    def column
      @context.enter do
        @native.GetColumn()
      end
    end

constructor?() click to toggle source

    # File lib/v8/stack.rb, line 69
    def constructor?
      @context.enter do
        @native.IsConstructor()
      end
    end

eval?() click to toggle source

    # File lib/v8/stack.rb, line 63
    def eval?
      @context.enter do
        @native.IsEval()
      end
    end

function_name() click to toggle source

    # File lib/v8/stack.rb, line 45
    def function_name
      @context.enter do
        @context.to_ruby(@native.GetFunctionName())
      end
    end

line_number() click to toggle source

    # File lib/v8/stack.rb, line 51
    def line_number
      @context.enter do
        @native.GetLineNumber()
      end
    end

script_name() click to toggle source

    # File lib/v8/stack.rb, line 39
    def script_name
      @context.enter do
        @context.to_ruby(@native.GetScriptName())
      end
    end

to_s() click to toggle source

    # File lib/v8/stack.rb, line 75
    def to_s
      @context.enter do
        "at " + if !function_name.empty?
          "#{function_name} (#{script_name}:#{line_number}:#{column})"
        else
          "#{script_name}:#{line_number}:#{column}"
        end
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.