module SDL::Types::SDLType
An SDLType
is a wrapper around a basic Ruby type
Public Class Methods
codes()
click to toggle source
# File lib/sdl/types/sdl_type.rb, line 8 def self.codes @codes ||= {} end
included(base)
click to toggle source
# File lib/sdl/types/sdl_type.rb, line 4 def self.included(base) base.extend ClassMethods end
Public Instance Methods
xml_attributes()
click to toggle source
# File lib/sdl/exporters/xml_mapping.rb, line 46 def xml_attributes attributes = {} if respond_to?(:identifier) && identifier attributes['identifier'] = identifier end unless annotations.blank? attributes['annotation'] = annotations.first end attributes end
xml_value()
click to toggle source
# File lib/sdl/exporters/xml_mapping.rb, line 42 def xml_value self end