Class: RuboCop::Cop::Style::EmptyMethod
- Defined in:
- lib/rubocop/cop/style/empty_method.rb
Constant Summary collapse
- YAYOI_MSG_COMPACT =
"ζ*'ヮ')ζ<うっうー!なにも書いてないメソッドは1行で書きましょうねー!".freeze
- YAYOI_MSG_EXPANDED =
"ζ*'ヮ')ζ<うっうー!なにも書いてないメソッドは1行で書かないで、" \ '`end`を次の行に書きましょうねー!'.freeze
Instance Method Summary collapse
Instance Method Details
#message(_node) ⇒ Object
11 12 13 |
# File 'lib/rubocop/cop/style/empty_method.rb', line 11 def (_node) compact_style? ? YAYOI_MSG_COMPACT : YAYOI_MSG_EXPANDED end |