diff options
Diffstat (limited to 'lib/hashie/extensions/coercion.rb')
-rw-r--r-- | lib/hashie/extensions/coercion.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/hashie/extensions/coercion.rb b/lib/hashie/extensions/coercion.rb index 88be97a..a12490a 100644 --- a/lib/hashie/extensions/coercion.rb +++ b/lib/hashie/extensions/coercion.rb @@ -21,8 +21,8 @@ module Hashie { Numeric => [Integer, Float, Complex, Rational] } else { - Integer => [Fixnum, Bignum], # rubocop:disable Lint/UnifiedInteger - Numeric => [Fixnum, Bignum, Float, Complex, Rational] # rubocop:disable Lint/UnifiedInteger + Integer => [Fixnum, Bignum], + Numeric => [Fixnum, Bignum, Float, Complex, Rational] } end @@ -103,7 +103,8 @@ module Hashie # # @param [Class] from the type you would like coerced. # @param [Class] into the class into which you would like the value coerced. - # @option options [Boolean] :strict (true) whether use exact source class only or include ancestors + # @option options [Boolean] :strict (true) whether use exact source class + # only or include ancestors # # @example Coerce all hashes into this special type of hash # class SpecialHash < Hash |