class MoreMath::ContinuedFraction

def for_b(arg = nil, &block)

method) the +x+ will be the second argument of the block.
argument to the block. If b_n is dependent on an +x+ value (see the call
block has to return the value for b_n when +n+ is passed as the first
has to respond to an integer index n >= 1 and return the value b_n. The
This method either takes a block or an argument +arg+. The argument +arg+
def for_b(arg = nil, &block)
  if arg and !block
    @b = arg
  elsif block and !arg
    @b = block
  else
    raise ArgumentError, "exactly one argument or one block required"
  end
  self
end