ruby structure