Class: Babeltrace::CTF::EnumDef
Instance Attribute Summary
Attributes inherited from Definition
#definition
Instance Method Summary
collapse
Methods inherited from Definition
create, #decl, #initialize, #name
Instance Method Details
#int ⇒ Object
350
351
352
|
# File 'lib/babeltrace/ctf/events.rb', line 350
def int
@definition.get_enum_int
end
|
#string ⇒ Object
354
355
356
|
# File 'lib/babeltrace/ctf/events.rb', line 354
def string
@definition.get_enum_str
end
|
#value ⇒ Object
358
359
360
|
# File 'lib/babeltrace/ctf/events.rb', line 358
def value
[ int.value, string ]
end
|