Class: Schema::CodeGeneratorRequest

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

Defined Under Namespace

Classes: List, RequestedFile

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

#capnp_versionObject



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

def capnp_version = Schema::CapnpVersion.from_pointer(read_pointer(2))

#nodesObject



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

def nodes = Schema::Node::List.from_pointer(read_pointer(0))

#requested_filesObject



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

def requested_files = Schema::CodeGeneratorRequest::RequestedFile::List.from_pointer(read_pointer(1))

#source_infoObject



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

def source_info = Schema::Node::SourceInfo::List.from_pointer(read_pointer(3))

#to_objObject



1318
1319
1320
1321
1322
1323
1324
1325
# File 'lib/capnp/generator/schema.capnp.rb', line 1318

def to_obj
  res = {}
  res["capnp_version"] = capnp_version&.to_obj
  res["nodes"] = nodes&.to_obj
  res["source_info"] = source_info&.to_obj
  res["requested_files"] = requested_files&.to_obj
  res
end