Class: Rubyang::Xpath::RelationalExpr

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, op2 = nil) ⇒ RelationalExpr

Returns a new instance of RelationalExpr.



332
333
334
335
336
# File 'lib/rubyang/xpath.rb', line 332

def initialize op1, operator=nil, op2=nil
  @op1 = op1
  @operator = operator
  @op2 = op2
end

Instance Attribute Details

#op1Object (readonly)

Returns the value of attribute op1.



331
332
333
# File 'lib/rubyang/xpath.rb', line 331

def op1
  @op1
end

#op2Object (readonly)

Returns the value of attribute op2.



331
332
333
# File 'lib/rubyang/xpath.rb', line 331

def op2
  @op2
end

#operatorObject (readonly)

Returns the value of attribute operator.



331
332
333
# File 'lib/rubyang/xpath.rb', line 331

def operator
  @operator
end