Modifiers should be indented as deep as method definitions, or as deep as the class/module keyword, depending on configuration.
# File lib/rubocop/cop/style/access_modifier_indentation.rb, line 32 def on_block(node) _method, _args, body = *node check_body(body, node) if class_constructor?(node) end
# File lib/rubocop/cop/style/access_modifier_indentation.rb, line 17 def on_class(node) _name, _base_class, body = *node check_body(body, node) end
Generated with the Darkfish Rdoc Generator 2.