lib/ripl/completion.rb in ripl-0.2.3 vs lib/ripl/completion.rb in ripl-0.2.4

- old
+ new

@@ -1,10 +1,10 @@ require 'bond' module Ripl::Completion def before_loop super - options = {:eval_binding=>lambda { Ripl.shell.binding }} - Bond.restart((config[:completion] || {}).merge(options)) + Bond.restart config[:completion] end end Ripl::Shell.send :include, Ripl::Completion +(Ripl.config[:completion] ||= {})[:eval_binding] = lambda { Ripl.shell.binding }