lib/fig/lock.rb
# Construct the name of the lock file from the name of the fig file
Construct the name of the lock file from the name of the fig file
Construct the name of the lock file from the name of the fig file
def lock_file_name(file)
  index = file.rindex('.')
  raise "Input file #{file} has no file extension" unless index
  file[0, index] << '.lock'
  end
def lock_file_name ( file ) index = file . rindex ( '.' ) raise "Input file #{file} has no file extension" unless index file [ 0 , index ] << '.lock' end
Construct the name of the lock file from the name of the fig file
Construct the name of the lock file from the name of the fig file
file
<not_specific>