class Spectifly::Xsd::Types
Constants
- Extended
- Native
Public Class Methods
build_extended(xml = nil)
click to toggle source
# File lib/spectifly/xsd/types.rb, line 19 def build_extended(xml = nil) xml ||= ::Builder::XmlMarkup.new(:indent => 2) xml.instruct! :xml, :version => '1.0', :encoding => 'UTF-8' xml.xs :schema, 'xmlns:xs' => "http://www.w3.org/2001/XMLSchema", 'elementFormDefault' => "qualified" do Extended.each_pair do |name, attributes| field = Spectifly::Xsd::Field.new(name.dup, attributes.dup) field.type_block(true).call(xml) end end end