class RuboCop::AST::CaseNode

def each_when

Deprecated:
  • Use `when_branches.each`
def each_when
  return when_branches.to_enum(__method__) unless block_given?
  when_branches.each do |condition|
    yield condition
  end
  self
end