Using Ruby to create and transition assembly