Class: Rubocop::Cop::OneLineConditional
- Includes:
- IfThenElse
- Defined in:
- lib/rubocop/cop/if_then_else.rb
Instance Attribute Summary
Attributes inherited from Cop
Instance Method Summary collapse
Methods included from IfThenElse
Methods inherited from Cop
#add_offence, #has_report?, inherited, #initialize
Constructor Details
This class inherits a constructor from Rubocop::Cop::Cop
Instance Method Details
#error_message ⇒ Object
57 58 59 |
# File 'lib/rubocop/cop/if_then_else.rb', line 57 def 'Favor the ternary operator (?:) over if/then/else/end constructs.' end |