Method: CodeTools::CompiledFile.dump
- Defined in:
- lib/rubinius/code/compiler/compiled_file.rb
.dump(code, file, signature, version) ⇒ Object
Writes the CompiledFile code to file.
41 42 43 44 45 46 47 |
# File 'lib/rubinius/code/compiler/compiled_file.rb', line 41 def self.dump(code, file, signature, version) File.open(file, "wb") do |f| new("!RBIX", signature, version).encode_to(f, code) end rescue SystemCallError # just skip writing the compiled file if we don't have permissions end |