Class: Rubocop::Cop::ClassAndModuleCamelCase
- Defined in:
- lib/rubocop/cop/class_and_module_camel_case.rb
Constant Summary collapse
- MSG =
'Use CamelCase for classes and modules.'
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_class(node) ⇒ Object
8 9 10 11 12 |
# File 'lib/rubocop/cop/class_and_module_camel_case.rb', line 8 def on_class(node) check_name(node) super end |
#on_module(node) ⇒ Object
14 15 16 17 18 |
# File 'lib/rubocop/cop/class_and_module_camel_case.rb', line 14 def on_module(node) check_name(node) super end |