Sha256: 523c3ef48ad80b095772d5883aed541b810c13489f55a599da13cda28c693ea3

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

module NamespacedModule
  include Xommelier::Xml

  xmlns 'http://example.org/'

  class EmptyRoot < Xommelier::Xml::Element
  end

  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

1 entries across 1 versions & 1 rubygems

Version Path
xommelier-0.0.1 spec/namespaced_module.rb