Class: IDL::Expression::Value

Inherits:
IDL::Expression show all
Defined in:
lib/ridl/expression.rb

Instance Attribute Summary

Attributes inherited from IDL::Expression

#idltype, #value

Instance Method Summary collapse

Methods inherited from IDL::Expression

#instantiate, #is_template?, #typename

Constructor Details

#initialize(type, val) ⇒ Value

Returns a new instance of Value.



30
31
32
33
# File 'lib/ridl/expression.rb', line 30

def initialize(type, val)
  @idltype = type
  @value = @idltype.narrow(val)
end