Corrected with rubocop cop 'Style/ClassMethods'.

This commit is contained in:
Thorsten Eckel 2015-05-05 13:01:16 +02:00
parent 07d3baee2b
commit a14e3fa608
2 changed files with 1 additions and 3 deletions

View file

@ -272,8 +272,6 @@ Style/MultilineOperationIndentation:
Enabled: false Enabled: false
Style/OneLineConditional: Style/OneLineConditional:
Enabled: false Enabled: false
Style/ClassMethods:
Enabled: false
Lint/Eval: Lint/Eval:
Enabled: false Enabled: false
Style/ModuleFunction: Style/ModuleFunction:

View file

@ -573,7 +573,7 @@ end
# workaround to parse subjects with 2 different encodings correctly (e. g. quoted-printable see test/fixtures/mail9.box) # workaround to parse subjects with 2 different encodings correctly (e. g. quoted-printable see test/fixtures/mail9.box)
module Mail module Mail
module Encodings module Encodings
def Encodings.value_decode(str) def self.value_decode(str)
# Optimization: If there's no encoded-words in the string, just return it # Optimization: If there's no encoded-words in the string, just return it
return str unless str.index('=?') return str unless str.index('=?')