class Babeltrace2::BTFieldClass::Variant::WithSelectorField::IntegerSigned::Option

Public Instance Methods

get_ranges() click to toggle source
# File lib/babeltrace2/trace-ir/field-class.rb, line 1606
def get_ranges
   BTIntegerRangeSetSigned.new(
     Babeltrace2.bt_field_class_variant_with_selector_field_integer_signed_option_borrow_ranges_const(
       @handle), retain: true)
end
Also aliased as: ranges
ranges()
Alias for: get_ranges
to_h() click to toggle source
Calls superclass method
# File lib/babeltrace2/trace-ir/field-class.rb, line 1613
def to_h
  res = super
  res[:ranges] = ranges.each.collect { |r| [r.lower, r.upper] }
  res
end