Module: XPath

Extended by:
DSL::TopLevel
Includes:
DSL::TopLevel
Defined in:
lib/xpath.rb,
lib/xpath/dsl.rb,
lib/xpath/html.rb,
lib/xpath/union.rb,
lib/xpath/literal.rb,
lib/xpath/version.rb,
lib/xpath/renderer.rb,
lib/xpath/expression.rb

Defined Under Namespace

Modules: DSL, HTML Classes: Expression, Literal, Renderer, Union

Constant Summary collapse

VERSION =
'2.0.0'

Class Method Summary collapse

Methods included from DSL::TopLevel

anywhere, attr, axis, child, contains, css, current, descendant, name, next_sibling, previous_sibling, starts_with, string, text

Class Method Details

.generate {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (XPath)

    the object that the method was called on



15
16
17
# File 'lib/xpath.rb', line 15

def self.generate
  yield(self)
end