Module: LLM::OpenAI::Response::Enumerable

Includes:
Enumerable
Defined in:
lib/llm/providers/openai/response/enumerable.rb

Instance Method Summary collapse

Instance Method Details

#eachObject



6
7
8
9
# File 'lib/llm/providers/openai/response/enumerable.rb', line 6

def each(&)
  return enum_for(:each) unless block_given?
  data.each { yield(_1) }
end