Sha256: 1548bc515bce951d3c2667faa792d28c4e7091a053d05f5c7a4666d8ac73a739

Contents?: true

Size: 1.29 KB

Versions: 11

Compression:

Stored size: 1.29 KB

Contents

require_relative "./../../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 & 2 rubygems

Version Path
roxml-4.2.0 test/mocks/dictionaries.rb
roxml-4.1.1 test/mocks/dictionaries.rb
roxml-4.1.0 test/mocks/dictionaries.rb
roxml-4.0.0 test/mocks/dictionaries.rb
roxml-3.3.1 test/mocks/dictionaries.rb
roxml-3.3.0 test/mocks/dictionaries.rb
roxml-3.2.2 test/mocks/dictionaries.rb
roxml-3.2.1 test/mocks/dictionaries.rb
roxml-3.2.0 test/mocks/dictionaries.rb
representable-0.0.1.alpha1 test/mocks/dictionaries.rb
roxml-3.1.6 test/mocks/dictionaries.rb