Class: Schema::Type
- Inherits:
-
Object
- Object
- Schema::Type
- Defined in:
- lib/thor/xsd_mappers.rb
Instance Method Summary collapse
Instance Method Details
#annonymus_subtypes_recursively(parent = nil) ⇒ Object
110 111 112 113 114 115 116 117 118 |
# File 'lib/thor/xsd_mappers.rb', line 110 def annonymus_subtypes_recursively(parent=nil) annonymus_subtypes.map do |element_name, e| parent_name = [parent, element_name].compact.join('::') [{parent_name => e.type}, e.type.annonymus_subtypes_recursively(parent_name)] end.flatten end |