Class: Schema::CapnpVersion
Defined Under Namespace
Classes: List
Constant Summary
collapse
- DEFAULT_MAJOR =
0
- DEFAULT_MINOR =
0
- DEFAULT_MICRO =
0
Instance Method Summary
collapse
decode_pointer, from_pointer, #initialize
Constructor Details
This class inherits a constructor from Capnp::Struct
Instance Method Details
#major ⇒ Object
1232
|
# File 'lib/capnp/generator/schema.capnp.rb', line 1232
def major = read_u16(0, 0)
|
#micro ⇒ Object
1238
|
# File 'lib/capnp/generator/schema.capnp.rb', line 1238
def micro = read_u8(3, 0)
|
#minor ⇒ Object
1235
|
# File 'lib/capnp/generator/schema.capnp.rb', line 1235
def minor = read_u8(2, 0)
|
#to_obj ⇒ Object
1246
1247
1248
1249
1250
1251
1252
|
# File 'lib/capnp/generator/schema.capnp.rb', line 1246
def to_obj
res = {}
res["major"] = major
res["minor"] = minor
res["micro"] = micro
res
end
|