Class: RuboCop::Cop::Cop
- Inherits:
-
Object
- Object
- RuboCop::Cop::Cop
- Defined in:
- lib/rubocop/cop/cop.rb
Direct Known Subclasses
Layout::DefEndAlignment, Layout::EmptyLineBetweenDefs, Layout::EmptyLines, Layout::EmptyLinesAroundMethodBody, Layout::IndentationConsistency, Layout::IndentationWidth, Layout::InitialIndentation, Layout::SpaceAfterComma, Layout::SpaceAroundOperators, Lint::AmbiguousBlockAssociation, Lint::IneffectiveAccessModifier, Lint::UnreachableCode, Lint::UnusedBlockArgument, Lint::UnusedMethodArgument, Lint::UselessAccessModifier, Lint::UselessAssignment, Metrics::CyclomaticComplexity, Metrics::LineLength, Metrics::PerceivedComplexity, Naming::AsciiIdentifiers, Naming::ClassAndModuleCamelCase, Naming::PredicateName, Naming::UncommunicativeMethodParamName, Naming::VariableName, Style::AndOr, Style::AsciiComments, Style::ColonMethodCall, Style::CommentAnnotation, Style::DefWithParentheses, Style::Documentation, Style::DoubleNegation, Style::EmptyMethod, Style::MutableConstant, Style::NumericLiterals, Style::RedundantReturn, Style::StringLiterals, Style::SymbolArray, Style::UnneededCondition, Style::UnneededInterpolation, Style::WordArray
Instance Method Summary collapse
Instance Method Details
#message(_node = nil) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rubocop/cop/cop.rb', line 6 def (_node = nil) if self.class.const_defined?(:YAYOI_MSG) self.class::YAYOI_MSG else self.class::MSG end end |