Method: RuboCop::Cop::Layout::EndAlignment#on_sclass

Defined in:
lib/rubocop/cop/layout/end_alignment.rb

#on_sclass(node) ⇒ Object


87
88
89
90
91
92
93
# File 'lib/rubocop/cop/layout/end_alignment.rb', line 87

def on_sclass(node)
  if node.parent&.assignment?
    check_asgn_alignment(node.parent, node)
  else
    check_other_alignment(node)
  end
end