class ValueType
Constants
- CONSTRUCTS__
- ISENUM__
Attributes
index[RW]
params[RW]
tag[RW]
Public Class Methods
new(t,index,p = nil )
click to toggle source
# File lib/lib/value_type.rb, line 9 def initialize(t,index,p = nil ) @tag = t; @index = index; @params = p; end
tbool()
click to toggle source
# File lib/lib/value_type.rb, line 11 def ValueType.tbool() ValueType.new("TBool",3) end
tclass(c)
click to toggle source
# File lib/lib/value_type.rb, line 12 def ValueType.tclass(c) ValueType.new("TClass",6,[c]) end
tenum(e)
click to toggle source
# File lib/lib/value_type.rb, line 13 def ValueType.tenum(e) ValueType.new("TEnum",7,[e]) end
tfloat()
click to toggle source
# File lib/lib/value_type.rb, line 14 def ValueType.tfloat() ValueType.new("TFloat",2) end
tfunction()
click to toggle source
# File lib/lib/value_type.rb, line 15 def ValueType.tfunction() ValueType.new("TFunction",5) end
tint()
click to toggle source
# File lib/lib/value_type.rb, line 16 def ValueType.tint() ValueType.new("TInt",1) end
tnull()
click to toggle source
# File lib/lib/value_type.rb, line 17 def ValueType.tnull() ValueType.new("TNull",0) end
tobject()
click to toggle source
# File lib/lib/value_type.rb, line 18 def ValueType.tobject() ValueType.new("TObject",4) end
tunknown()
click to toggle source
# File lib/lib/value_type.rb, line 19 def ValueType.tunknown() ValueType.new("TUnknown",8) end
Public Instance Methods
==(a)
click to toggle source
# File lib/lib/value_type.rb, line 21 def ==(a) (!a.nil?) && (a.respond_to? 'ISENUM__') && a.tag === @tag && a.index === @index && a.params == @params end