Sha256: e8094eb528d48ee39cde2bfc12e8b1b0ded6aeaf9e37ea9f632288586f29272d
Contents?: true
Size: 219 Bytes
Versions: 13
Compression:
Stored size: 219 Bytes
Contents
module RevealCK module Misc # Knows how to remove an extension from a filename module RemoveExtension def remove_extension(file_name) file_name.sub(%r{\.[^/]*\z}, '') end end end end
Version data entries
13 entries across 13 versions & 1 rubygems