Class: Vertigo::Sliced

Inherits:
AstNode show all
Defined in:
lib/vertigo/ast_vertigo_rkgen.rb

Instance Attribute Summary collapse

Attributes inherited from AstNode

#label, #pos

Instance Method Summary collapse

Methods inherited from AstNode

#accept, #str

Constructor Details

#initialize(expr = nil, lhs = nil, dir = nil, rhs = nil) ⇒ Sliced

Returns a new instance of Sliced.



526
527
528
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 526

def initialize expr=nil,lhs=nil,dir=nil,rhs=nil
  @expr,@lhs,@dir,@rhs=expr,lhs,dir,rhs
end

Instance Attribute Details

#dirObject

Returns the value of attribute dir.



525
526
527
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 525

def dir
  @dir
end

#exprObject

Returns the value of attribute expr.



525
526
527
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 525

def expr
  @expr
end

#lhsObject

Returns the value of attribute lhs.



525
526
527
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 525

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs.



525
526
527
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 525

def rhs
  @rhs
end