class IDL::Type::Boolean
Constants
- Range
Public Instance Methods
in_range?(val)
click to toggle source
# File lib/ridl/type.rb, line 213 def in_range?(val) Range.include?(val) end
max()
click to toggle source
# File lib/ridl/type.rb, line 209 def max true end
min()
click to toggle source
# File lib/ridl/type.rb, line 205 def min false end
narrow(obj)
click to toggle source
# File lib/ridl/type.rb, line 196 def narrow(obj) typeerror(obj) unless [TrueClass, FalseClass].include? obj.class obj end
next(val)
click to toggle source
# File lib/ridl/type.rb, line 217 def next(val) !val end
range_length()
click to toggle source
# File lib/ridl/type.rb, line 201 def range_length 2 end