Class: Capnp::ObjectList

Inherits:
Object
  • Object
show all
Extended by:
T::Generic, T::Sig
Includes:
List
Defined in:
lib/capnp/runtime/list/object/list.rb

Constant Summary collapse

Elem =
type_member(:out)

Instance Method Summary collapse

Methods included from List

#[], #each

Constructor Details

#initialize(array) ⇒ ObjectList

Returns a new instance of ObjectList.



14
15
16
# File 'lib/capnp/runtime/list/object/list.rb', line 14

def initialize(array)
  @array = array
end

Instance Method Details

#lengthObject



22
# File 'lib/capnp/runtime/list/object/list.rb', line 22

def length = @array.length

#to_objObject



25
# File 'lib/capnp/runtime/list/object/list.rb', line 25

def to_obj = @array