Method: Babeltrace2::BTFieldClass::Variant::WithSelectorField::IntegerUnsigned#get_option_by_name

Defined in:
lib/babeltrace2/trace-ir/field-class.rb

#get_option_by_name(name) ⇒ Object



1597
1598
1599
1600
1601
1602
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 1597

def get_option_by_name(name)
  name = name.inspect if name.kind_of?(Symbol)
  handle = Babeltrace2.bt_field_class_variant_with_selector_field_integer_unsigned_borrow_option_by_name_const(@handle, name)
  return nil if handle.null?
  BTFieldClassVariantWithSelectorFieldIntegerUnsignedOption.new(handle)
end