Sha256: 22c089698239e90087a0f070f3c422eee2e7065a2e67973f6bda19f3d0dcf3c7

Contents?: true

Size: 158 Bytes

Versions: 9

Compression:

Stored size: 158 Bytes

Contents

module DuckPuncher
  module String
    def pluralize(count)
      "#{self}#{'s' if count != 1}"
    end
  end
end

String.send(:include, DuckPuncher::String)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
duck_puncher-2.3.0 lib/duck_puncher/string.rb
duck_puncher-2.2.0 lib/duck_puncher/string.rb
duck_puncher-2.1.0 lib/duck_puncher/string.rb
duck_puncher-2.0.0 lib/duck_puncher/string.rb
duck_puncher-1.0.0 lib/duck_puncher/string.rb
duck_puncher-0.2.0 lib/duck_puncher/string.rb
duck_puncher-0.1.2 lib/duck_puncher/string.rb
duck_puncher-0.1.1 lib/duck_puncher/string.rb
duck_puncher-0.1.0 lib/duck_puncher/string.rb