Exception: BisonParser::Error
- Inherits:
-
Exception
- Object
- Exception
- BisonParser::Error
- Defined in:
- lib/bison_parser/base.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(msg, source, row, col) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg, source, row, col) ⇒ Error
44 45 46 47 |
# File 'lib/bison_parser/base.rb', line 44 def initialize(msg, source, row, col) source ||= '-' = "#{source}:#{row}.#{col} #{msg}" end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
43 44 45 |
# File 'lib/bison_parser/base.rb', line 43 def end |