Class: Rubyang::Xpath::UnaryExpr
- Inherits:
-
Object
- Object
- Rubyang::Xpath::UnaryExpr
- Defined in:
- lib/rubyang/xpath.rb
Instance Attribute Summary collapse
-
#op1 ⇒ Object
readonly
Returns the value of attribute op1.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(op1, operator = nil) ⇒ UnaryExpr
constructor
A new instance of UnaryExpr.
Constructor Details
#initialize(op1, operator = nil) ⇒ UnaryExpr
Returns a new instance of UnaryExpr.
359 360 361 362 |
# File 'lib/rubyang/xpath.rb', line 359 def initialize op1, operator=nil @op1 = op1 @operator = operator end |
Instance Attribute Details
#op1 ⇒ Object (readonly)
Returns the value of attribute op1.
358 359 360 |
# File 'lib/rubyang/xpath.rb', line 358 def op1 @op1 end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
358 359 360 |
# File 'lib/rubyang/xpath.rb', line 358 def operator @operator end |