examples/example.rb in oxmlk-0.1.0 vs examples/example.rb in oxmlk-0.2.0

- old
+ new

@@ -1,31 +1,33 @@ class Number include OxMlk ox_tag :number + ox_attr :group, :from => :attr ox_attr(:value, :from => :content) end class Email include OxMlk ox_tag :email + ox_attr :group, :from => :attr 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(:alt, :from => '@alt') ox_attr(:name) - ox_attr(:numbers, :as => [Number], :freeze => false) ox_attr(:contacts, :as => [Number,Email], :freeze => true) + ox_attr(:friends, :as => [Person], :in => :friends, :freeze => false) def say_hello(xml) 'hello' end end \ No newline at end of file