lib/pry-singular.rb in pry-singular-0.1.5 vs lib/pry-singular.rb in pry-singular-0.1.6

- old
+ new

@@ -23,11 +23,12 @@ def import_class_command(klass, options) singular_methods = adapt_options_singleton_methods(klass, options) set_pry_command do singular_methods.each do |klass_method| command "#{klass_method}", "#{klass}.#{klass_method}" do + singular_method_code = parse_singular_method_command(Readline::HISTORY.to_a.last) klass.class_eval <<-EOS - #{parse_singular_method_command(Readline::HISTORY.to_a.last)} + #{singular_method_code} EOS end end end end