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

Version Path
reveal-ck-4.0.0 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.9.2 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.9.1 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.9.0 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.8.1 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.8.0 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.7.0 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.6.0 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.5.1 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.5.0 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.4.0 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.3.1 lib/reveal-ck/misc/remove_extension.rb
reveal-ck-3.3.0 lib/reveal-ck/misc/remove_extension.rb