Module: RuboCop::Cop::OnMethodDef
- Included in:
- Lint::DefEndAlignment, Lint::NestedMethodDefinition, Lint::UselessSetterCall, MethodComplexity, Metrics::MethodLength, Style::AccessorMethodName, Style::AlignParameters, Style::ClosingParenthesisIndentation, Style::DefWithParentheses, Style::EmptyLinesAroundMethodBody, Style::FirstMethodParameterLineBreak, Style::IndentationWidth, Style::MethodDefParentheses, Style::MethodMissing, Style::MultilineMethodDefinitionBraceLayout, Style::NonNilCheck, Style::PredicateName, Style::RedundantBegin, Style::RedundantReturn, Style::SingleLineMethods, Style::SpaceAfterMethodName
- Defined in:
- lib/rubocop/cop/mixin/on_method_def.rb
Overview
Common functionality for checking instance methods and singleton methods.
Instance Method Summary collapse
Instance Method Details
#on_def(node) ⇒ Object
8 9 10 11 |
# File 'lib/rubocop/cop/mixin/on_method_def.rb', line 8 def on_def(node) method_name, args, body = *node on_method_def(node, method_name, args, body) end |
#on_defs(node) ⇒ Object
13 14 15 16 |
# File 'lib/rubocop/cop/mixin/on_method_def.rb', line 13 def on_defs(node) _scope, method_name, args, body = *node on_method_def(node, method_name, args, body) end |