examples/example.rb in oxmlk-0.2.3 vs examples/example.rb in oxmlk-0.3.0

- old
+ new

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