Class: Rubocop::Cop::Loop
- Defined in:
- lib/rubocop/cop/loop.rb
Constant Summary collapse
- MSG =
'Use Kernel#loop with break rather than begin/end/until(or while).'
Instance Attribute Summary
Attributes inherited from Cop
#debug, #disabled_lines, #offences
Instance Method Summary collapse
Methods inherited from Cop
#add_offence, cop_name, #has_report?, #ignore_node, inherited, #initialize, #inspect, #name, #on_comment
Constructor Details
This class inherits a constructor from Rubocop::Cop::Cop
Instance Method Details
#on_until(node) ⇒ Object
14 15 16 17 18 |
# File 'lib/rubocop/cop/loop.rb', line 14 def on_until(node) check(node) super end |
#on_while(node) ⇒ Object
8 9 10 11 12 |
# File 'lib/rubocop/cop/loop.rb', line 8 def on_while(node) check(node) super end |