class IDL::Type::Fixed
def initialize(digits = nil, scale = nil)
def initialize(digits = nil, scale = nil) raise "significant digits for Fixed should be in the range 0-31" unless digits.nil? || (0..31) === digits.to_i @digits = digits.nil? ? digits : digits.to_i @scale = scale.nil? ? scale : scale.to_i end
def instantiate(instantiation_context)
def instantiate(instantiation_context) self.is_template? ? (Type::Fixed.new(@size.instantiate(instantiation_context).value)) : self end
def is_anonymous?
def is_anonymous? false end
def is_template?
def is_template? (@size && @size.is_a?(IDL::Expression) && @size.is_template?) end
def narrow(obj)
def narrow(obj) # typeerror(obj) obj end