Class: Babeltrace2::BTIntegerRange
- Inherits:
-
BTObject
- Object
- BTObject
- Babeltrace2::BTIntegerRange
show all
- Defined in:
- lib/babeltrace2/integer-range-set.rb
Instance Attribute Summary
Attributes inherited from BTObject
#handle
Instance Method Summary
collapse
Methods inherited from BTObject
#==, #initialize, #to_ptr
Instance Method Details
#include?(val) ⇒ Boolean
20
21
22
|
# File 'lib/babeltrace2/integer-range-set.rb', line 20
def include?(val)
lower <= val && upper >= val
end
|
#value ⇒ Object
16
17
18
|
# File 'lib/babeltrace2/integer-range-set.rb', line 16
def value
lower..upper
end
|