Skip to content

Instantly share code, notes, and snippets.

@dbussink
Created June 15, 2009 18:22
Show Gist options
  • Save dbussink/130251 to your computer and use it in GitHub Desktop.
Save dbussink/130251 to your computer and use it in GitHub Desktop.
diff --git a/kernel/compiler/compile.rb b/kernel/compiler/compile.rb
index 6d07471..0eb5fab 100644
--- a/kernel/compiler/compile.rb
+++ b/kernel/compiler/compile.rb
@@ -93,7 +93,7 @@ class Compiler
# Unqualified
else
$LOAD_PATH.each do |dir|
- if rbc and dir.suffix? '.rba' and File.file? dir and !options[:recompile]
+ if rbc and File.file?(dir) and dir.suffix?('.rba') and !options[:recompile]
begin
_, _, _, _, _, data = Ar.new(dir).extract rbc
rescue Ar::Error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment