class RLTK::CG::ConstantNumber
All number constants inherit from this class.
@abstract
Public Class Methods
type()
click to toggle source
@return [Type] The corresponding Type
sub-class that is used to represent the type of this value.
# File lib/rltk/cg/value.rb, line 537 def self.type @type ||= RLTK::CG.const_get(self.short_name + 'Type').instance end
Public Instance Methods
type()
click to toggle source
@return [Type] The corresponding Type
sub-class that is used to represent the type of this value.
# File lib/rltk/cg/value.rb, line 542 def type self.class.type end