Module: Nrename

Defined in:
lib/nrename.rb,
lib/nrename/utils.rb,
lib/nrename/runner.rb,
lib/nrename/counter.rb,
lib/nrename/options.rb,
lib/nrename/version.rb,
lib/nrename/directory.rb,
lib/nrename/numbered_file.rb

Defined Under Namespace

Modules: Runner, Utils Classes: Counter, Directory, NumberedFile, Options

Constant Summary collapse

VERSION =
'0.2.6'

Class Method Summary collapse

Class Method Details

.executable_nameObject



13
14
15
# File 'lib/nrename.rb', line 13

def self.executable_name
  File.basename $PROGRAM_NAME
end

.optionsObject



17
18
19
# File 'lib/nrename.rb', line 17

def self.options
  @options ||= Options.new
end

.parse_options(args) ⇒ Object



21
22
23
24
# File 'lib/nrename.rb', line 21

def self.parse_options(args)
  @options = Options.new
  options.parse args
end