Class: Schema::Node::GroupConst

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

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

#to_objObject



113
114
115
116
117
118
# File 'lib/capnp/generator/schema.capnp.rb', line 113

def to_obj
  res = {}
  res["type"] = type&.to_obj
  res["value"] = value&.to_obj
  res
end

#typeObject



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

def type = Schema::Type.from_pointer(read_pointer(3))

#valueObject



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

def value = Schema::Value.from_pointer(read_pointer(4))