Skip to content

Commit

Permalink
Fix RuboCop offenses and warnings about .rubocop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pocke authored and olleolleolle committed Jan 9, 2020
1 parent 118032e commit 79bfeff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .rubocop.yml
Expand Up @@ -7,14 +7,14 @@ AllCops:
Exclude:
- "spec/**/*"
- "vendor/**/*"
Documentation:
Style/Documentation:
Enabled: false

HashSyntax:
Style/HashSyntax:
Enabled: false

MethodName:
Naming/MethodName:
Enabled: false

StringLiterals:
Style/StringLiterals:
Enabled: false
4 changes: 3 additions & 1 deletion lib/rainbow/ext/string.rb
Expand Up @@ -59,4 +59,6 @@ def cross_out
end
end

::String.send(:include, Rainbow::Ext::String::InstanceMethods)
class String
include Rainbow::Ext::String::InstanceMethods
end

0 comments on commit 79bfeff

Please sign in to comment.