Class: Crokus::Arrow

Inherits:
Expr 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(l, r) ⇒ Arrow

Returns a new instance of Arrow.



408
409
410
# File 'lib/crokus/ast.rb', line 408

def initialize l,r
  @lhs,@rhs=l,r
end

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



407
408
409
# File 'lib/crokus/ast.rb', line 407

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs.



407
408
409
# File 'lib/crokus/ast.rb', line 407

def rhs
  @rhs
end