Sha256: 1d01dfdb13ff44baa26a3185cdf710ae03a12a76a6f3a31835343e98edf81202

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

class Number
  include OxMlk
  
  ox_tag :number
  
  ox_attr :group
  ox_elem(:value, :from => :content)
end

class Email
  include OxMlk
  
  ox_tag :email
  
  ox_attr :group
  ox_elem(:value, :from => :content)
end

class Person
  include OxMlk
  
  ox_tag :person
  
  ox_attr :category
  ox_attr :alternate, :from => 'alt'
  
  ox_elem :name
  ox_elem :contacts, :as => [Number,Email]
  ox_elem :friends, :as => [Person], :in => :friends
  
  def say_hello(xml)
    'hello'
  end
end

class Example
  include OxMlk
end

module Test
  class Example
    include OxMlk
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oxmlk-0.3.1 examples/example.rb
oxmlk-0.3.0 examples/example.rb