Sha256: d5ff0bcdf880dbf2a57e9af347e81039368abcdacff6ac352a9b78060e19e2ef
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
# Author:: TAC (tac@tac42.net) require_relative 'yasuri_node' module Yasuri class StructNode include Node def inject(agent, page, opt = {}) sub_tags = page.search(@xpath) sub_tags.map do |sub_tag| child_results_kv = @children.map do |child_node| child_name = Yasuri.NodeName(child_node.name, opt) [child_name, child_node.inject(agent, sub_tag, opt)] end Hash[child_results_kv] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yasuri-0.0.8 | lib/yasuri/yasuri_struct_node.rb |