Class: Vertigo::DiscreteRange

Inherits:
AstNode
  • Object
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(lhs = nil, dir = nil, rhs = nil) ⇒ DiscreteRange

Returns a new instance of DiscreteRange.



449
450
451
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 449

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

Instance Attribute Details

#dirObject

Returns the value of attribute dir.



448
449
450
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 448

def dir
  @dir
end

#lhsObject

Returns the value of attribute lhs.



448
449
450
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 448

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs.



448
449
450
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 448

def rhs
  @rhs
end