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-3.0.6 lib/patches/string_extensions.rb
thecore_backend_commons-3.0.5 lib/patches/string_extensions.rb
thecore_backend_commons-3.0.4 lib/patches/string_extensions.rb
thecore_backend_commons-3.0.3 lib/patches/string_extensions.rb
thecore_backend_commons-3.0.0 lib/patches/string_extensions.rb
thecore_backend_commons-2.4.2 lib/patches/string_extensions.rb
thecore_backend_commons-2.4.1 lib/patches/string_extensions.rb
thecore_backend_commons-2.4.0 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.10 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.9 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.8 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.7 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.6 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.5 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.4 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.3 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.2 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.1 lib/patches/string_extensions.rb
thecore_backend_commons-2.3.0 lib/patches/string_extensions.rb
thecore_backend_commons-2.2.8 lib/patches/string_extensions.rb