Class: RuboCop::Cop::Style::StringLiterals

Inherits:
Cop
  • Object
show all
Defined in:
lib/rubocop/cop/style/string_literals.rb

Instance Method Summary collapse

Instance Method Details

#message(_node) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/rubocop/cop/style/string_literals.rb', line 7

def message(_node)
  if style == :single_quotes
    "ζ*'ヮ')ζ<うっうー!特殊記号とか補間がないときはシングルクォーテーションで囲いましょうねー"
  else
    "ζ*'ヮ')ζ<うっうー!バックスラッシュでシングルクォーテーションが必要でない限りダブルクォーテーションで囲いましょうねー"
  end
end