summaryrefslogtreecommitdiff
path: root/sample/iseq_loader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/iseq_loader.rb')
-rw-r--r--sample/iseq_loader.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/iseq_loader.rb b/sample/iseq_loader.rb
index bf6e422..8c27140 100644
--- a/sample/iseq_loader.rb
+++ b/sample/iseq_loader.rb
@@ -141,11 +141,11 @@ class RubyVM::InstructionSequence
end
def read_compiled_iseq fname, iseq_key
- open(iseq_key, 'rb'){|f| f.read}
+ File.open(iseq_key, 'rb'){|f| f.read}
end
def write_compiled_iseq fname, iseq_key, binary
- open(iseq_key, 'wb'){|f| f.write(binary)}
+ File.open(iseq_key, 'wb'){|f| f.write(binary)}
end
end