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

- old
+ new

@@ -23,12 +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) + extend PrySingular::Slop klass.class_eval <<-EOS - #{singular_method_code} + #{parse_singular_method_command(Readline::HISTORY.to_a.last)} EOS end end end end