Class: Vertigo::RangedType

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(type = nil, range = nil) ⇒ RangedType

Returns a new instance of RangedType.



428
429
430
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 428

def initialize type=nil,range=nil
  @type,@range=type,range
end

Instance Attribute Details

#rangeObject

Returns the value of attribute range.



427
428
429
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 427

def range
  @range
end

#typeObject

Returns the value of attribute type.



427
428
429
# File 'lib/vertigo/ast_vertigo_rkgen.rb', line 427

def type
  @type
end