Exception: TRuby::Scanner::ScanError
- Inherits:
-
StandardError
- Object
- StandardError
- TRuby::Scanner::ScanError
- Defined in:
- lib/t_ruby/scanner.rb
Overview
스캔 에러
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(message, line:, column:, position:) ⇒ ScanError
constructor
A new instance of ScanError.
Constructor Details
#initialize(message, line:, column:, position:) ⇒ ScanError
Returns a new instance of ScanError.
14 15 16 17 18 19 |
# File 'lib/t_ruby/scanner.rb', line 14 def initialize(, line:, column:, position:) @line = line @column = column @position = position super("#{} at line #{line}, column #{column}") end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
12 13 14 |
# File 'lib/t_ruby/scanner.rb', line 12 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
12 13 14 |
# File 'lib/t_ruby/scanner.rb', line 12 def line @line end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
12 13 14 |
# File 'lib/t_ruby/scanner.rb', line 12 def position @position end |