move fits_u8 to integer constant (from numberic)

This commit is contained in:
Torsten Ruger
2014-09-17 16:23:29 +03:00
parent 95c7e44342
commit e7f7f9c319
6 changed files with 9 additions and 12 deletions

View File

@@ -28,6 +28,9 @@ module Virtual
def type
Virtual::Integer
end
def fits_u8?
integer >= 0 and integer <= 255
end
end
# The name really says it all.