Sha256: 7e7c89a53624f86c73cf99716e1711164e723a6c3be654f3588fc68831810ff2
Contents?: true
Size: 598 Bytes
Versions: 3
Compression:
Stored size: 598 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 :lame? 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxmlk-0.4.0 | examples/example.rb |
oxmlk-0.3.3 | examples/example.rb |
oxmlk-0.3.2 | examples/example.rb |