Exception: IDL::ParseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ridl/scanner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, positions) ⇒ ParseError

Returns a new instance of ParseError.



19
20
21
22
# File 'lib/ridl/scanner.rb', line 19

def initialize(msg, positions)
  super(msg)
  @positions = positions
end

Instance Attribute Details

#positionsObject (readonly)

Returns the value of attribute positions.



18
19
20
# File 'lib/ridl/scanner.rb', line 18

def positions
  @positions
end

Instance Method Details

#inspectObject



23
24
25
26
27
28
29
30
# File 'lib/ridl/scanner.rb', line 23

def inspect
  puts self.class.name+": "+message
  @positions.each { |pos|
    print "    "
    puts pos
  }
  nil
end