Class: Schema::Node::GroupEnum

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

#enumerantsObject



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

def enumerants = Schema::Enumerant::List.from_pointer(read_pointer(3))

#to_objObject



78
79
80
81
82
# File 'lib/capnp/generator/schema.capnp.rb', line 78

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