class IDL::Type::Char
Public Instance Methods
in_range?(val)
click to toggle source
# File lib/ridl/type.rb, line 237 def in_range?(val) val >= self.min && val <= self.max end
max()
click to toggle source
# File lib/ridl/type.rb, line 241 def max 255 end
min()
click to toggle source
# File lib/ridl/type.rb, line 233 def min 0 end
narrow(obj)
click to toggle source
# File lib/ridl/type.rb, line 223 def narrow(obj) typeerror(obj) unless ::Integer === obj typeerror(obj) unless (0..255) === obj obj end
next(val)
click to toggle source
# File lib/ridl/type.rb, line 245 def next(val) val < self.max ? val + 1 : self.min end
range_length()
click to toggle source
# File lib/ridl/type.rb, line 229 def range_length 256 end