class IDL::Type::WChar

Public Instance Methods

narrow(obj) click to toggle source
# File lib/ridl/type.rb, line 479
def narrow(obj)
  typeerror(obj) unless ::Array === obj
  typeerror(obj) unless obj.size == 2
  obj
end