Google

def indent to, ind to << " "*ind unless ind<1 end