Class: Schema::Method
Defined Under Namespace
Classes: List
Constant Summary
collapse
- DEFAULT_NAME =
nil
- DEFAULT_CODE_ORDER =
0
- DEFAULT_PARAM_STRUCT_TYPE =
0
- DEFAULT_RESULT_STRUCT_TYPE =
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
511
|
# File 'lib/capnp/generator/schema.capnp.rb', line 511
def code_order = read_u16(0, 0)
|
#implicit_parameters ⇒ Object
#param_brand ⇒ Object
518
|
# File 'lib/capnp/generator/schema.capnp.rb', line 518
def param_brand = Schema::Brand.from_pointer(read_pointer(2))
|
#param_struct_type ⇒ Object
516
|
# File 'lib/capnp/generator/schema.capnp.rb', line 516
def param_struct_type = read_u64(8, 0)
|
#result_brand ⇒ Object
523
|
# File 'lib/capnp/generator/schema.capnp.rb', line 523
def result_brand = Schema::Brand.from_pointer(read_pointer(3))
|
#result_struct_type ⇒ Object
521
|
# File 'lib/capnp/generator/schema.capnp.rb', line 521
def result_struct_type = read_u64(16, 0)
|
#to_obj ⇒ Object
533
534
535
536
537
538
539
540
541
542
543
544
|
# File 'lib/capnp/generator/schema.capnp.rb', line 533
def to_obj
res = {}
res["name"] = name&.to_obj
res["code_order"] = code_order
res["implicit_parameters"] = implicit_parameters&.to_obj
res["param_struct_type"] = param_struct_type
res["param_brand"] = param_brand&.to_obj
res["result_struct_type"] = result_struct_type
res["result_brand"] = result_brand&.to_obj
res["annotations"] = annotations&.to_obj
res
end
|