Sha256: 923d2b52fb71e6866a9fa105e51facc341c2440b525b79d10ff9b9e6f5294e98
Contents?: true
Size: 874 Bytes
Versions: 2
Compression:
Stored size: 874 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true ################################################ # © 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.34 | spec/support/namespaced_module.rb |
xommelier-0.1.33 | spec/support/namespaced_module.rb |