Sha256: 59029f91e27abcbb0c00e6c58fc13516afe64920a0334ac3c90285f69a38a454

Contents?: true

Size: 1.28 KB

Versions: 11

Compression:

Stored size: 1.28 KB

Contents

require 'lib/roxml'

class DictionaryOfAttrs
  include ROXML

  xml_name :dictionary
  xml_reader :definitions, :as => {:key => '@dt',
                                   :value => '@dd'}, :in => :definitions
end

class DictionaryOfTexts
  include ROXML

  xml_name :dictionary
  xml_reader :definitions, :as => {:key => :word,
                            :value => :meaning}
end

class DictionaryOfMixeds
  include ROXML

  xml_name :dictionary
  xml_reader :definitions, :as => {:key => '@word',
                            :value => :content}
end

class DictionaryOfNames
  include ROXML

  xml_name :dictionary
  xml_reader :definitions, :as => {:key => :name,
                            :value => :content}
end

class DictionaryOfGuardedNames
  include ROXML

  xml_name :dictionary
  xml_reader :definitions, :as => {:key => :name,
                            :value => :content}, :in => :definitions
end

class DictionaryOfNameClashes
  include ROXML

  xml_name :dictionary
  xml_reader :definitions, :as => {:key => 'name',
                            :value => 'content'}, :from => :definition
end

class DictionaryOfAttrNameClashes
  include ROXML

  xml_name :dictionary
  xml_reader :definitions, :as => {:key => '@name',
                            :value => 'content'}, :from => :definition
end

Version data entries

11 entries across 11 versions & 5 rubygems

Version Path
Empact-roxml-2.5.2 test/mocks/dictionaries.rb
Empact-roxml-2.5.3 test/mocks/dictionaries.rb
doxo-roxml-2.5.3 test/mocks/dictionaries.rb
yob-roxml-3.1.6 test/mocks/dictionaries.rb
roxml-3.1.5 test/mocks/dictionaries.rb
roxml-3.1.4 test/mocks/dictionaries.rb
roxml-3.1.3 test/mocks/dictionaries.rb
roxml-3.1.2 test/mocks/dictionaries.rb
roxml-3.1.1 test/mocks/dictionaries.rb
roxml-3.1.0 test/mocks/dictionaries.rb
ROXML-3.0.0 test/mocks/dictionaries.rb