Method: Pry::Command::SaveFile#process
- Defined in:
- lib/pry/commands/save_file.rb
#process ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/pry/commands/save_file.rb', line 28 def process @cc = CodeCollector.new(args, opts, pry_instance) raise CommandError, "Found no code to save." if @cc.content.empty? if !file_name display_content else save_file end end |