Sha256: 6009d345de43e564800eb94d287fbe56afc3ea30b8e3bf63e96b84ecb47963cb

Contents?: true

Size: 241 Bytes

Versions: 24

Compression:

Stored size: 241 Bytes

Contents

# .gsub(/[^A-Za-z0-9]/, " ").split.join("%")
require 'active_support/concern'

module StringConcern
  extend ActiveSupport::Concern

  def likeize
    # .select{|w| w.length > 2}
    strip.gsub(/[^A-Za-z0-9]/, " ").split.join("%")
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
thecore_backend_commons-2.2.7 lib/patches/string_extensions.rb
thecore_backend_commons-2.2.6 lib/patches/string_extensions.rb
thecore_backend_commons-2.2.5 lib/patches/string_extensions.rb
thecore_backend_commons-2.2.4 lib/patches/string_extensions.rb