Method: ShellHelpers::PathnameExt::Base#nonexisting_name
- Defined in:
- lib/shell_helpers/pathname.rb
#nonexisting_name ⇒ Object
find a non existing filename
159 160 161 162 163 164 |
# File 'lib/shell_helpers/pathname.rb', line 159 def nonexisting_name return self unless self.may_exist? new_name(Proc.new {|f| !f.may_exist?}) do |old_name, ind| old_name.append_name("%02d" % ind) end end |