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::LOWERCASE_LETTERS, DSL::METHODS, DSL::OPERATORS, DSL::UPPERCASE_LETTERS
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, #contains_word, #css, #descendant, #ends_with, #function, #is, #last, #lowercase, #method, #next_sibling, #one_of, #position, #previous_sibling, #qname, #text, #union, #uppercase, #where
Constructor Details
#initialize(expression, *arguments) ⇒ Expression
Returns a new instance of Expression.
8 9 10 11 |
# File 'lib/xpath/expression.rb', line 8 def initialize(expression, *arguments) @expression = expression @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
5 6 7 |
# File 'lib/xpath/expression.rb', line 5 def arguments @arguments end |
#expression ⇒ Object
Returns the value of attribute expression.
5 6 7 |
# File 'lib/xpath/expression.rb', line 5 def expression @expression end |