class MoreMath::ContinuedFraction

def each(&block)

def each(&block)
  if simple?
    (0..Float::INFINITY).lazy.map { |i| @a[i] }.take_while { |x| x }.each(&block)
  end
end