Class: Vertigo::ArrayType

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(name = nil, discrete_ranges = []) ⇒ ArrayType

Returns a new instance of ArrayType.



442
443
444
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 442

def initialize name=nil,discrete_ranges=[]
  @name,@discrete_ranges=name,discrete_ranges
end

Instance Attribute Details

#discrete_rangesObject

Returns the value of attribute discrete_ranges.



441
442
443
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 441

def discrete_ranges
  @discrete_ranges
end

#nameObject

Returns the value of attribute name.



441
442
443
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 441

def name
  @name
end