Class: Babeltrace2::BTIntegerRange

Inherits:
BTObject
  • Object
show all
Defined in:
lib/babeltrace2/integer-range-set.rb

Direct Known Subclasses

BTIntegerRangeSigned, BTIntegerRangeUnsigned

Instance Attribute Summary

Attributes inherited from BTObject

#handle

Instance Method Summary collapse

Methods inherited from BTObject

#==, #initialize, #to_ptr

Constructor Details

This class inherits a constructor from Babeltrace2::BTObject

Instance Method Details

#include?(val) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/babeltrace2/integer-range-set.rb', line 20

def include?(val)
  lower <= val && upper >= val
end

#valueObject



16
17
18
# File 'lib/babeltrace2/integer-range-set.rb', line 16

def value
  lower..upper
end