Class: RuboCop::Cop::Style::SymbolArray
- Defined in:
- lib/rubocop/cop/style/symbol_array.rb
Constant Summary collapse
- PERCENT_YAYOI_MSG =
"ζ*'ヮ')ζ<うっうー!" \ 'シンボルだけだけの配列には`%w`か`%W`を使いましょうねー!'.freeze
- ARRAY_YAYOI_MSG =
"ζ*'ヮ')ζ<うっうー!配列には`[]`を使いましょうねー!".freeze
Instance Method Summary collapse
Instance Method Details
#message(_node) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/rubocop/cop/style/symbol_array.rb', line 11 def (_node) if style == :percent PERCENT_YAYOI_MSG else ARRAY_YAYOI_MSG end end |