Exception: IDL::ParseError
- Inherits:
-
StandardError
- Object
- StandardError
- IDL::ParseError
- Defined in:
- lib/ridl/scanner.rb
Instance Attribute Summary collapse
-
#positions ⇒ Object
readonly
Returns the value of attribute positions.
Instance Method Summary collapse
-
#initialize(msg, positions) ⇒ ParseError
constructor
A new instance of ParseError.
- #inspect ⇒ Object
Constructor Details
#initialize(msg, positions) ⇒ ParseError
Returns a new instance of ParseError.
18 19 20 21 |
# File 'lib/ridl/scanner.rb', line 18 def initialize(msg, positions) super(msg) @positions = positions end |
Instance Attribute Details
#positions ⇒ Object (readonly)
Returns the value of attribute positions.
16 17 18 |
# File 'lib/ridl/scanner.rb', line 16 def positions @positions end |
Instance Method Details
#inspect ⇒ Object
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 |