class RuboCop::AST::HashNode

def each_key(&block)

Returns:
  • (Enumerator) - if no block is given
  • (self) - if a block is given

Other tags:
    Note: - `kwsplat` nodes are ignored.
def each_key(&block)
  return pairs.map(&:key).to_enum unless block
  pairs.map(&:key).each(&block)
  self
end