module SDL::Types::SDLType::ClassMethods

Attributes

codes[R]

The codes, which are to be used to refer to this type

@return [Symbol]

wrapped_type[R]

The Ruby type, which is to be wrapped

@return Class

Public Instance Methods

wraps(type) click to toggle source

Sets the wrapped Ruby type @param type Class

# File lib/sdl/types/sdl_type.rb, line 28
def wraps(type)
  @wrapped_type = type
end
xml_type() click to toggle source
# File lib/sdl/exporters/xml_mapping.rb, line 33
def xml_type
  if self < SDL::Base::Type
    wrapped_type.xsd_type_name
  else
    'ns:string'
  end
end