Class: Babeltrace2::BTFieldClass::Variant::WithSelectorField::IntegerSigned::Option
- Inherits:
-
Babeltrace2::BTFieldClassVariantOption
- Object
- Babeltrace2::BTFieldClass::Variant::WithSelectorField::IntegerSigned::Option
- Defined in:
- lib/babeltrace2/trace-ir/field-class.rb
Instance Method Summary collapse
- #get_ranges ⇒ Object (also: #ranges)
- #to_h ⇒ Object
Instance Method Details
#get_ranges ⇒ Object Also known as: ranges
1608 1609 1610 1611 1612 |
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 1608 def get_ranges BTIntegerRangeSetSigned.new( Babeltrace2.bt_field_class_variant_with_selector_field_integer_signed_option_borrow_ranges_const( @handle), retain: true) end |
#to_h ⇒ Object
1615 1616 1617 1618 1619 |
# File 'lib/babeltrace2/trace-ir/field-class.rb', line 1615 def to_h res = super res[:ranges] = ranges.each.collect { |r| [r.lower, r.upper] } res end |