module Fixnames::FixFile
Public Class Methods
fix!(*args)
click to toggle source
# File lib/fixnames/interface.rb, line 15 def self.fix!(*args) parse(*args).fix! end
fix_list!(list, *args)
click to toggle source
# File lib/fixnames/interface.rb, line 19 def self.fix_list!(list, *args) list.map do |x| fix! x, *args end end
fix_name(*args)
click to toggle source
Returns the fixed version of a filename, without actually changing anything on the filesystem.
# File lib/fixnames/interface.rb, line 11 def self.fix_name(*args) parse(*args).fixed end
parse(name, opts)
click to toggle source
# File lib/fixnames/interface.rb, line 5 def self.parse(name, opts) Engine.new(name, opts) end