Class: IDL::Type::WChar

Inherits:
IDL::Type show all
Defined in:
lib/ridl/type.rb

Constant Summary

Constants inherited from IDL::Type

Long, LongLong, Octet, Short, ULong, ULongLong, UShort

Instance Method Summary collapse

Methods inherited from IDL::Type

#instantiate, #is_anonymous?, #is_complete?, #is_local?, #is_node?, #is_template?, #matches?, #resolved_node, #resolved_type, #typeerror, #typename

Instance Method Details

#narrow(obj) ⇒ Object



392
393
394
395
396
# File 'lib/ridl/type.rb', line 392

def narrow(obj)
  typeerror(obj) unless ::Array === obj
  typeerror(obj) unless obj.size == 2
  obj
end