Sha256: 33b3372d18aa9f23ffab9cdb4a3418614bebcd03b16c8a1a45e54a42e06bc5d2
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
# coding: utf-8 ################################################ # © Alexander Semyonov, 2011—2013, MIT License # # Author: Alexander Semyonov <al@semyonov.us> # ################################################ module NamespacedModule include Xommelier::Xml xmlns 'http://example.org/' class RootWithText < Xommelier::Xml::Element text end class RootWithSimpleSubelement < Xommelier::Xml::Element element :some end class RootWithAttribute < Xommelier::Xml::Element attribute :one, type: Date attribute :another end class RootWithManySimpleSubelements < Xommelier::Xml::Element element :foo, count: :many end class RootWithSubelement < Xommelier::Xml::Element attribute :one, type: Date attribute :two element :some element :another, type: RootWithSimpleSubelement end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xommelier-0.1.32 | spec/support/namespaced_module.rb |
xommelier-0.1.31 | spec/namespaced_module.rb |