Module: Fixnames::FixFile

Defined in:
lib/fixnames/interface.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) fix!(*args)



15
16
17
# File 'lib/fixnames/interface.rb', line 15

def self.fix!(*args)
  parse(*args).fix!
end

+ (Object) fix_list!(list, *args)



19
20
21
22
23
# File 'lib/fixnames/interface.rb', line 19

def self.fix_list!(list, *args)
  list.map do |x|
    fix! x, *args
  end
end

+ (Object) fix_name(*args)

Returns the fixed version of a filename, without actually changing anything on the filesystem.



11
12
13
# File 'lib/fixnames/interface.rb', line 11

def self.fix_name(*args)
  parse(*args).fixed
end

+ (Object) parse(name, opts)



5
6
7
# File 'lib/fixnames/interface.rb', line 5

def self.parse(name, opts)
  Engine.new(name, opts)
end