class RuboCop::AST::HashNode

def keys

Returns:
  • (Array) - an array of keys in the `hash` literal

Other tags:
    Note: - `kwsplat` nodes are ignored.
def keys
  each_key.to_a
end