Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make instance variables available in irb

  • Loading branch information...
commit fb0e6ec3f769d1f71ed3d0ecaa8a393099cc3854 1 parent 47a4c33
@jberkel authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/interactive_editor.rb
View
2  lib/interactive_editor.rb
@@ -34,7 +34,7 @@ def edit(file=nil)
end
def execute
- Object.class_eval(IO.read(@file.path))
+ eval(IO.read(@file.path), TOPLEVEL_BINDING)
end
def self.edit(editor, file=nil)
Please sign in to comment.
Something went wrong with that request. Please try again.