summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-02-05 17:33:55 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-02-05 17:33:55 -0800
commitc635042e2a7de3beaafb498fb50af39f3b2a8dd5 (patch)
tree50fc5507225db8254dcea0e76d050f44e0b046f0 /lib
parent2af19a1e54678beba6e107400fc2b34b7350354e (diff)
downloadpsych-c635042e2a7de3beaafb498fb50af39f3b2a8dd5.zip
using a file handle for faster reading
Diffstat (limited to 'lib')
-rw-r--r--lib/psych.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index eefa99a..0c4a7ee 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -156,7 +156,7 @@ module Psych
# Load the document contained in +filename+. Returns the yaml contained in
# +filename+ as a ruby object
def self.load_file filename
- self.load File.read(filename)
+ self.load File.open(filename)
end
# :stopdoc: