Class: Rubyang::Xpath::UnaryExpr

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyang/xpath.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#op1Object (readonly)

Returns the value of attribute op1.



358
359
360
# File 'lib/rubyang/xpath.rb', line 358

def op1
  @op1
end

#operatorObject (readonly)

Returns the value of attribute operator.



358
359
360
# File 'lib/rubyang/xpath.rb', line 358

def operator
  @operator
end