Sha256: 9464f68b0affe14e431066e4a00572d8867d3205296f06f74814b81a96153c4d

Contents?: true

Size: 404 Bytes

Versions: 5

Compression:

Stored size: 404 Bytes

Contents

# Author::    TAC (tac@tac42.net)

require_relative 'yasuri_node'

module Yasuri
  module Node
    attr_reader :url, :xpath, :name, :children

    def initialize(xpath, name, children = [], opt: {})
      @xpath, @name, @children = xpath, name, children
    end

    def inject(agent, page, opt = {})
      fail "#{Kernel.__method__} is not implemented."
    end
    def opts
      {}
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yasuri-2.0.11 lib/yasuri/yasuri_node.rb
yasuri-0.0.11 lib/yasuri/yasuri_node.rb
yasuri-0.0.10 lib/yasuri/yasuri_node.rb
yasuri-0.0.9 lib/yasuri/yasuri_node.rb
yasuri-0.0.8 lib/yasuri/yasuri_node.rb