Class: Parsr::SyntaxError
Direct Known Subclasses
Rules::Array::Unterminated, Rules::Hash::MissingSeparator, Rules::Hash::MissingValue, Rules::Hash::Unterminated, Rules::RawString::Unterminated, Rules::Regexp::Unterminated, Rules::String::Unterminated
Instance Attribute Summary collapse
-
#scanner ⇒ Object
readonly
Returns the value of attribute scanner.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scanner) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Constructor Details
#initialize(scanner) ⇒ SyntaxError
Returns a new instance of SyntaxError.
22 23 24 25 |
# File 'lib/parsr.rb', line 22 def initialize(scanner) @scanner = scanner super(self.class. % context) end |
Instance Attribute Details
#scanner ⇒ Object (readonly)
Returns the value of attribute scanner.
15 16 17 |
# File 'lib/parsr.rb', line 15 def scanner @scanner end |
Class Method Details
.message(message = nil) ⇒ Object
17 18 19 20 |
# File 'lib/parsr.rb', line 17 def self.(=nil) @message = "Syntax error, #{}" if @message end |