Sha256: d47222447baef7e2a2313b247a82e51deccaf3714584692b478175959ab10c7a

Contents?: true

Size: 335 Bytes

Versions: 2

Compression:

Stored size: 335 Bytes

Contents

module OLD
  module DOM
    def is_text?(elem)
      elem.text?
    end

    def is_elem?(elem)
      elem.elem?
    end

    def text(elem)
      elem.text
    end

    def children(elem)
      elem.children
    end

    def xpath(elem, query)
      elem.xpath(query)
    end

    def tag_name(elem)
      elem.name
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
old-0.1.1 lib/dom.rb
old-0.1.0 lib/dom.rb