class DirectionNotFoundError
Public Class Methods
new(ast, client, direction, server)
click to toggle source
Calls superclass method
CompilerError::new
# File lib/compiler_error.rb, line 139 def initialize ast, client, direction, server super ast.position @client = client @direction = direction @server = server end
Public Instance Methods
info()
click to toggle source
# File lib/compiler_error.rb, line 146 def info case @direction when :left "'#{@client.name} -> #{@server.name}' : undefined direction" when :right "'#{@client.name} <- #{@server.name}' : undefined direction" end end