Sha256: 0fc0b25c1b14333dbd53665ca22fc30eb8d5ba4f785986af5cc80957a37a8f1e

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

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

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

class Person
  include OxMlk
  
  ox_tag :person
  
  ox_attr(:category, :from => :attr)
  ox_attr(:two_attr, :from => '@attr2')
  
  ox_attr(:name)
  ox_attr(:numbers, :as => [Number], :freeze => false)
  ox_attr(:contacts, :as => [Number,Email], :freeze => true)
  
  def say_hello(xml)
    'hello'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oxmlk-0.1.0 examples/example.rb