Class: Rubyang::Xpath::PathExpr
- Inherits:
-
Object
- Object
- Rubyang::Xpath::PathExpr
- Defined in:
- lib/rubyang/xpath.rb
Instance Attribute Summary collapse
-
#op1 ⇒ Object
readonly
Returns the value of attribute op1.
-
#op2 ⇒ Object
readonly
Returns the value of attribute op2.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(op1, operator = nil, op2 = nil) ⇒ PathExpr
constructor
A new instance of PathExpr.
Constructor Details
#initialize(op1, operator = nil, op2 = nil) ⇒ PathExpr
Returns a new instance of PathExpr.
376 377 378 379 380 |
# File 'lib/rubyang/xpath.rb', line 376 def initialize op1, operator=nil, op2=nil @op1 = op1 @operator = operator @op2 = op2 end |
Instance Attribute Details
#op1 ⇒ Object (readonly)
Returns the value of attribute op1.
375 376 377 |
# File 'lib/rubyang/xpath.rb', line 375 def op1 @op1 end |
#op2 ⇒ Object (readonly)
Returns the value of attribute op2.
375 376 377 |
# File 'lib/rubyang/xpath.rb', line 375 def op2 @op2 end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
375 376 377 |
# File 'lib/rubyang/xpath.rb', line 375 def operator @operator end |