Class: XSD::NSDBase

Inherits:
Object show all
Defined in:
lib/xsd/datatypes.rb

Overview

The base class of all datatypes with Namespace.

Constant Summary collapse

@@types =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNSDBase

Returns a new instance of NSDBase.



101
102
# File 'lib/xsd/datatypes.rb', line 101

def initialize
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



91
92
93
# File 'lib/xsd/datatypes.rb', line 91

def type
  @type
end

Class Method Details

.inherited(klass) ⇒ Object



93
94
95
# File 'lib/xsd/datatypes.rb', line 93

def self.inherited(klass)
  @@types << klass
end

.typesObject



97
98
99
# File 'lib/xsd/datatypes.rb', line 97

def self.types
  @@types
end

Instance Method Details

#init(type) ⇒ Object



104
105
106
# File 'lib/xsd/datatypes.rb', line 104

def init(type)
  @type = type
end