diff options
author | Bobby McDonald <bobbymcwho@gmail.com> | 2019-10-17 23:51:50 -0400 |
---|---|---|
committer | Bobby McDonald <bobbymcwho@gmail.com> | 2019-10-17 23:55:45 -0400 |
commit | 6a965273845f64605e0e951ac113a4383f7e8af5 (patch) | |
tree | 56c0f813cefe071fdcc25756275636c58e8beb3b /lib/hashie/extensions/coercion.rb | |
parent | 20e5467188bb4b6ab4166a72c07ec2bc0b883fa0 (diff) | |
download | hashie-6a965273845f64605e0e951ac113a4383f7e8af5.tar.gz |
Change rubocop to allow 100 character lines.
For accessibility reasons, we should limit our lines to 100 chars max.
https://github.com/slack-ruby/slack-ruby-client/pull/293#discussion_r309472083
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 |