Permalink
Browse files

Make instance variables available in irb

  • Loading branch information...
1 parent 47a4c33 commit fb0e6ec3f769d1f71ed3d0ecaa8a393099cc3854 @jberkel committed Sep 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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)

0 comments on commit fb0e6ec

Please sign in to comment.