move type to phial and add type to reg_ref

This commit is contained in:
Torsten Ruger
2015-10-10 19:14:27 +03:00
parent cb306c09f0
commit dd3381e38b
15 changed files with 65 additions and 54 deletions

View File

@ -13,7 +13,7 @@ module Virtual
# derived classes are Boot/Meta Class and StringConstant
class ObjectConstant < Constant
# def type
# Virtual::Reference
# Phisol::Reference
# end
def clazz
raise "abstract #{self}"
@ -26,7 +26,7 @@ module Virtual
end
attr_reader :integer
def type
Virtual::Integer
Phisol::Integer
end
def fits_u8?
integer >= 0 and integer <= 255