Sha256: f06b13f32db63ba18c4b210f9c595dbf51d0ef1f2e796dec5c730d09808b46f6
Contents?: true
Size: 876 Bytes
Versions: 1
Compression:
Stored size: 876 Bytes
Contents
module XPath autoload :Expression, 'xpath/expression' autoload :Union, 'xpath/union' autoload :HTML, 'xpath/html' extend self def self.generate yield(Expression::Self.new) end def current Expression::Self.new end def name Expression::Name.new(current) end def descendant(*expressions) Expression::Descendant.new(current, expressions) end def child(*expressions) Expression::Child.new(current, expressions) end def anywhere(expression) Expression::Anywhere.new(expression) end def attr(expression) Expression::Attribute.new(current, expression) end def contains(expression) Expression::Contains.new(current, expression) end def text Expression::Text.new(current) end def var(name) Expression::Variable.new(name) end def varstring(name) var(name).string_literal end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xpath-0.1.0 | lib/xpath.rb |