geometry for ruby