class Rsec::SyntaxError

error class for rescue

Attributes

col[R]
line[R]
line_text[R]
msg[R]

Public Class Methods

new(msg, line_text, line, col) click to toggle source

constructor

# File lib/rsec/utils.rb, line 9
def initialize msg, line_text, line, col
  @msg, @line_text, @line, @col = msg, line_text, line, col
end

Public Instance Methods

to_s() click to toggle source

info with source position

# File lib/rsec/utils.rb, line 14
def to_s
  %Q<#@msg\n#@line_text\n#{' ' * @col}^>
end