Class: RungerStyle::NoReturn

Inherits:
RuboCop::Cop::Base
  • Object
show all
Defined in:
lib/runger_style/cops/default/no_return.rb

Constant Summary collapse

MSG =
'Do not use `return`.'

Instance Method Summary collapse

Instance Method Details

#on_return(node) ⇒ Object



7
8
9
# File 'lib/runger_style/cops/default/no_return.rb', line 7

def on_return(node)
  add_offense(node.loc.keyword, message: MSG)
end