class Babeltrace2::BTFieldClass::Option::WithSelectorField

Public Instance Methods

get_selector_field_path() click to toggle source
# File lib/babeltrace2/trace-ir/field-class.rb, line 1176
def get_selector_field_path
  handle = Babeltrace2.bt_field_class_option_with_selector_field_borrow_selector_field_path_const(@handle)
  return nil if handle.null?
  BTFieldPath.new(handle, retain: true)
end
Also aliased as: selector_field_path
selector_field_path()
to_h() click to toggle source
Calls superclass method Babeltrace2::BTFieldClass::Option#to_h
# File lib/babeltrace2/trace-ir/field-class.rb, line 1183
def to_h
  res = super
  res[:selector_field_path] = selector_field_path.to_s if selector_field_path
  res
end