Class: CompilerError

Inherits:
Object
  • Object
show all
Defined in:
lib/compiler_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(position) ⇒ CompilerError

Returns a new instance of CompilerError.



3
4
5
# File 'lib/compiler_error.rb', line 3

def initialize position
	@position = position
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/compiler_error.rb', line 7

def to_s
	"#{@position}: #{info}"
end