Skip to content

indentation/ruby: indent method definitions having an access modifier

this is valid Ruby since version 2.1, as since that version defs return their method name, and access modifiers aren't really that special to any other methods.

this change is also useful for Crystal where you can only define private methods as private def foo.

Merge request reports

Loading