Class: Crokus::CondExpr

Inherits:
Ast
  • Object
show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(cond, lhs, rhs) ⇒ CondExpr

Returns a new instance of CondExpr.



347
348
349
# File 'lib/crokus/ast.rb', line 347

def initialize cond,lhs,rhs
  @cond,@lhs,@rhs = cond,lhs,rhs
end

Instance Attribute Details

#condObject

Returns the value of attribute cond.



346
347
348
# File 'lib/crokus/ast.rb', line 346

def cond
  @cond
end

#lhsObject

Returns the value of attribute lhs.



346
347
348
# File 'lib/crokus/ast.rb', line 346

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs.



346
347
348
# File 'lib/crokus/ast.rb', line 346

def rhs
  @rhs
end