Class: Schema::Node::NestedNode

Inherits:
Capnp::Struct show all
Defined in:
lib/capnp/generator/schema.capnp.rb

Defined Under Namespace

Classes: List

Constant Summary collapse

DEFAULT_NAME =
nil
DEFAULT_ID =
0

Instance Method Summary collapse

Methods inherited from Capnp::Struct

decode_pointer, from_pointer, #initialize

Constructor Details

This class inherits a constructor from Capnp::Struct

Instance Method Details

#idObject



210
# File 'lib/capnp/generator/schema.capnp.rb', line 210

def id = read_u64(0, 0)

#nameObject



207
# File 'lib/capnp/generator/schema.capnp.rb', line 207

def name = Capnp::BufferString.from_pointer(read_pointer(0))

#to_objObject



218
219
220
221
222
223
# File 'lib/capnp/generator/schema.capnp.rb', line 218

def to_obj
  res = {}
  res["name"] = name&.to_obj
  res["id"] = id
  res
end