Hide geometry lines with Ruby

Please post code correctly, not images of code.