Class: XPath::Expression
- Inherits:
-
Object
- Object
- XPath::Expression
- Includes:
- DSL
- Defined in:
- lib/xpath/expression.rb
Constant Summary
Constants included from DSL
DSL::AXES, DSL::METHODS, DSL::OPERATORS
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#expression ⇒ Object
Returns the value of attribute expression.
Instance Method Summary collapse
- #current ⇒ Object
-
#initialize(expression, *arguments) ⇒ Expression
constructor
A new instance of Expression.
- #to_xpath(type = nil) ⇒ Object (also: #to_s)
Methods included from DSL
#anywhere, #attr, #axis, #binary_operator, #child, #css, #descendant, #function, #is, #last, #method, #next_sibling, #one_of, #position, #previous_sibling, #text, #union, #where
Constructor Details
#initialize(expression, *arguments) ⇒ Expression
Returns a new instance of Expression.
6 7 8 9 |
# File 'lib/xpath/expression.rb', line 6 def initialize(expression, *arguments) @expression = expression @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/xpath/expression.rb', line 3 def arguments @arguments end |
#expression ⇒ Object
Returns the value of attribute expression.
3 4 5 |
# File 'lib/xpath/expression.rb', line 3 def expression @expression end |