Method: T::Enum.each_value

Defined in:
lib/sorbet/eraser/t/enum.rb

.each_value(&blk) ⇒ Object

This exists for compatibility with the interface of ‘Hash` & mostly to support the HashEachMethods Rubocop.



19
20
21
22
23
24
25
# File 'lib/sorbet/eraser/t/enum.rb', line 19

def self.each_value(&blk)
  if blk
    values.each(&blk)
  else
    values.each
  end
end