Class: NamePromptSource

Inherits:
NameSource show all
Defined in:
lib/namesource.rb

Instance Method Summary collapse

Methods inherited from NameSource

#close

Instance Method Details

#name(file, md, path) ⇒ Object



48
49
50
51
# File 'lib/namesource.rb', line 48

def name(file, md, path)
  print "Rename #{File.join(path, file)}\n#[captures: #{md.display} ] to:\n>>> "
  STDIN.gets.chomp
end