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.
19 20 21 22 |
# File 'lib/ridl/scanner.rb', line 19 def initialize(msg, positions) super(msg) @positions = positions end |
Instance Attribute Details
#positions ⇒ Object (readonly)
Returns the value of attribute positions.
18 19 20 |
# File 'lib/ridl/scanner.rb', line 18 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+": "+ @positions.each { |pos| print " " puts pos } nil end |