Class: Rea::DBLP::EntryParser
- Defined in:
- lib/rea-dblp/rea/dblp/entry_parser.rb
Instance Method Summary collapse
Methods inherited from Parser
Methods included from ErrorUtils
#error_message, #not_found_error!, #not_implemented_error!, #parse_error!, #parse_format_error!, #third_party_error!, #unexpected_error!
Instance Method Details
#parse_text(entry, source = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/rea-dblp/rea/dblp/entry_parser.rb', line 5 def parse_text(entry, source = nil) entries = [] parse_xml(entry, source) do |doc| doc.xpath("/dblp/*").each do |entry| entries << send(:"parse_#{entry.name}", entry) end end entries end |