Sha256: 0af3383033265a9d7e22485ec300584b3313e3ebb98aad2e3dd4e578db96f89f

Contents?: true

Size: 259 Bytes

Versions: 7

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

module Normalizy
  module Filters
    module Slug
      class << self
        def call(input, options = {})
          return input unless input.is_a?(String)

          input.parameterize
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
normalizy-1.6.0 lib/normalizy/filters/slug.rb
normalizy-1.5.0 lib/normalizy/filters/slug.rb
normalizy-1.4.0 lib/normalizy/filters/slug.rb
normalizy-1.3.0 lib/normalizy/filters/slug.rb
normalizy-1.2.0 lib/normalizy/filters/slug.rb
normalizy-1.1.1 lib/normalizy/filters/slug.rb
normalizy-1.1.0 lib/normalizy/filters/slug.rb