Class: Schema::Enumerant
Defined Under Namespace
Classes: List
Constant Summary
collapse
- DEFAULT_NAME =
nil
- DEFAULT_CODE_ORDER =
0
Instance Method Summary
collapse
decode_pointer, from_pointer, #initialize
Constructor Details
This class inherits a constructor from Capnp::Struct
Instance Method Details
#code_order ⇒ Object
465
|
# File 'lib/capnp/generator/schema.capnp.rb', line 465
def code_order = read_u16(0, 0)
|
#to_obj ⇒ Object
475
476
477
478
479
480
481
|
# File 'lib/capnp/generator/schema.capnp.rb', line 475
def to_obj
res = {}
res["name"] = name&.to_obj
res["code_order"] = code_order
res["annotations"] = annotations&.to_obj
res
end
|