lib/duck_puncher/ducks/string.rb in duck_puncher-4.2.3 vs lib/duck_puncher/ducks/string.rb in duck_puncher-4.3.0

- old
+ new

@@ -1,8 +1,8 @@ module DuckPuncher module Ducks module String - BOOLEAN_MAP = ::Hash[%w(true 1 yes y on).product([true]) + ['false', '0', 'no', 'n', 'off', ''].product([false])].freeze + BOOLEAN_MAP = ::Hash[%w(true 1 yes y on).product([true])].freeze def pluralize(count) "#{self}#{'s' if count != 1}" end unless method_defined?(:pluralize)