Class: Traceur::CompilationError::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/traceur/compilation_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



21
22
23
# File 'lib/traceur/compilation_error.rb', line 21

def column
  @column
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



21
22
23
# File 'lib/traceur/compilation_error.rb', line 21

def file
  @file
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



21
22
23
# File 'lib/traceur/compilation_error.rb', line 21

def line
  @line
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



21
22
23
# File 'lib/traceur/compilation_error.rb', line 21

def message
  @message
end

Instance Method Details

#to_sObject



22
23
24
# File 'lib/traceur/compilation_error.rb', line 22

def to_s
  "#{file}:#{line}:#{column}: #{message}"
end