Module: Fixnames::FixFile
- Defined in:
- lib/fixnames/interface.rb
Class Method Summary collapse
- .fix!(*args) ⇒ Object
- .fix_list!(list, *args) ⇒ Object
-
.fix_name(*args) ⇒ Object
Returns the fixed version of a filename, without actually changing anything on the filesystem.
- .parse(name, opts) ⇒ Object
Class Method Details
.fix!(*args) ⇒ Object
15 16 17 |
# File 'lib/fixnames/interface.rb', line 15 def self.fix!(*args) parse(*args).fix! end |
.fix_list!(list, *args) ⇒ Object
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 |
.fix_name(*args) ⇒ Object
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 |