Exception: Rubycc::Rmake::ParseError

Inherits:
RmakeError show all
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

Instance Method Summary collapse

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(message, line_number:)
  @line_number = line_number
  super("Makefile:#{line_number}: #{message}")
end

Instance Attribute Details

#line_numberObject (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