Module: SDL::Types::SDLType::ClassMethods
- Defined in:
- lib/sdl/types/sdl_type.rb,
lib/sdl/exporters/xml_mapping.rb
Instance Attribute Summary collapse
-
#codes(*symbols) ⇒ Array<Symbol>
readonly
Adds the
symbols
to be used to refer to this type to the list of codes and returns them. -
#wrapped_type ⇒ Object
readonly
The Ruby type, which is to be wrapped.
Instance Method Summary collapse
-
#wraps(type) ⇒ Object
Sets the wrapped Ruby type.
- #xml_type ⇒ Object
Instance Attribute Details
#codes(*symbols) ⇒ Array<Symbol> (readonly)
Adds the symbols
to be used to refer to this type to the list of codes and returns them.
23 24 25 |
# File 'lib/sdl/types/sdl_type.rb', line 23 def codes @codes end |
#wrapped_type ⇒ Object (readonly)
The Ruby type, which is to be wrapped
17 18 19 |
# File 'lib/sdl/types/sdl_type.rb', line 17 def wrapped_type @wrapped_type end |
Instance Method Details
#wraps(type) ⇒ Object
Sets the wrapped Ruby type
28 29 30 |
# File 'lib/sdl/types/sdl_type.rb', line 28 def wraps(type) @wrapped_type = type end |