Exception: Rubycc::Rmake::ParseError
- Inherits:
-
RmakeError
- Object
- StandardError
- Error
- RmakeError
- Rubycc::Rmake::ParseError
- Defined in:
- lib/rubycc/rmake/errors.rb
Overview
A line the parser cannot classify as an assignment, a rule, a recipe, or a directive that mkmf is known to emit. Carries the 1-based source line so the offending text can be located in the generated Makefile.
Instance Attribute Summary collapse
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
Instance Method Summary collapse
-
#initialize(message, line_number:) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, line_number:) ⇒ ParseError
Returns a new instance of ParseError.
22 23 24 25 |
# File 'lib/rubycc/rmake/errors.rb', line 22 def initialize(, line_number:) @line_number = line_number super("Makefile:#{line_number}: #{}") end |
Instance Attribute Details
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number.
20 21 22 |
# File 'lib/rubycc/rmake/errors.rb', line 20 def line_number @line_number end |