### Home Classes Methods

### In Files

- lib/v8/access/indices.rb

### Methods

- #idelete
- #iget
- #indices
- #iquery
- #iset

### 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::Access::Indices

### Public Instance Methods

idelete(obj, index, &dontintercept) click to toggle source

    # File lib/v8/access/indices.rb, line 35
    def idelete(obj, index, &dontintercept)
      yield
    end

iget(obj, index, &dontintercept) click to toggle source

    # File lib/v8/access/indices.rb, line 8
    def iget(obj, index, &dontintercept)
      if obj.respond_to?(:[])
        obj.send(:[], index, &dontintercept)
      else
        yield
      end
    end

indices(obj) click to toggle source

    # File lib/v8/access/indices.rb, line 4
    def indices(obj)
      obj.respond_to?(:length) ? (0..obj.length).to_a : []
    end

iquery(obj, index, attributes, &dontintercept) click to toggle source

    # File lib/v8/access/indices.rb, line 24
    def iquery(obj, index, attributes, &dontintercept)
      if obj.respond_to?(:[])
        attributes.dont_delete
        unless obj.respond_to?(:[]=)
          attributes.read_only
        end
      else
        yield
      end
    end

iset(obj, index, value, &dontintercept) click to toggle source

    # File lib/v8/access/indices.rb, line 16
    def iset(obj, index, value, &dontintercept)
      if obj.respond_to?(:[]=)
        obj.send(:[]=, index, value, &dontintercept)
      else
        yield
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.