diff options
Diffstat (limited to 'lib/irb.rb')
-rw-r--r-- | lib/irb.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/irb.rb b/lib/irb.rb index 869f5ad894..676abe42cd 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -705,3 +705,11 @@ module IRB array.join("\n") end end + +class Binding + # :nodoc: + def irb + IRB.setup(eval("__FILE__")) + IRB::Irb.new(IRB::WorkSpace.new(self)).run(IRB.conf) + end +end |