Module: XPath

Extended by:
DSL::TopLevel
Includes:
DSL::TopLevel
Included in:
HTML
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

VERSION =
'1.0.0.beta1'

Class Method Summary (collapse)

Methods included from DSL::TopLevel

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

Class Method Details

+ (Object) generate {|_self| ... }

Yields:

  • (_self)

Yield Parameters:

  • _self (XPath)

    the object that the method was called on



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

def self.generate
  yield(self)
end