diff --git a/lib/rexical/generator.rb b/lib/rexical/generator.rb index cdfb46c..46752f0 100644 --- a/lib/rexical/generator.rb +++ b/lib/rexical/generator.rb @@ -314,7 +314,7 @@ def scan_str(str) def load_file( filename ) @filename = filename - open(filename, "r") do |f| + File.open(filename, "r") do |f| scan_setup(f.read) end end