Class: Litter::Parsing::Transform
- Inherits:
-
Object
- Object
- Litter::Parsing::Transform
- Defined in:
- lib/litter/parsing/transform.rb
Instance Method Summary collapse
-
#apply(parsed) ⇒ Hash
Transforms output from Parser (an array of entry hashes) into a hash of arrays containing item finds.
Instance Method Details
#apply(parsed) ⇒ Hash
Transforms output from Parser (an array of entry hashes) into a hash of arrays containing item finds.
8 9 10 11 12 13 14 15 16 |
# File 'lib/litter/parsing/transform.rb', line 8 def apply(parsed) all_items = {} parsed.each do |entry| extract_entry_into_all_items(entry, all_items) end all_items end |