Class: Parsr::SyntaxError
Direct Known Subclasses
ArrayRule::Unterminated, HashRule::MissingSeparator, HashRule::MissingValue, HashRule::Unterminated, RawStringRule::Unterminated, Parsr::StringRule::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.
31 32 33 34 |
# File 'lib/parsr.rb', line 31 def initialize(scanner) @scanner = scanner super(self.class. % context) end |
Instance Attribute Details
#scanner ⇒ Object (readonly)
Returns the value of attribute scanner.
24 25 26 |
# File 'lib/parsr.rb', line 24 def scanner @scanner end |
Class Method Details
.message(message = nil) ⇒ Object
26 27 28 29 |
# File 'lib/parsr.rb', line 26 def self.(=nil) = "Syntax error, #{message}" if end |