Exception: CompilationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ffi/inline/error.rb

Overview

-- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

     DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. You just DO WHAT THE FUCK YOU WANT TO. ++

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ CompilationError

Returns a new instance of CompilationError.



12
13
14
15
16
# File 'lib/ffi/inline/error.rb', line 12

def initialize (path)
	@path = path

	super "compile error: see logs at #{@path}"
end

Instance Method Details

#log ⇒ Object



18
19
20
# File 'lib/ffi/inline/error.rb', line 18

def log
	File.read(@path)
end