Sha256: 3b4d7a60a203c875382cf43f7c67c808f07da6b20fed6ba202c61251b133971c
Contents?: true
Size: 374 Bytes
Versions: 14
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true # This provides String#delete_suffix? for Ruby 2.4. unless String.method_defined?(:delete_suffix) class CSV module DeleteSuffix refine String do def delete_suffix(suffix) if end_with?(suffix) self[0...-suffix.size] else self end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems