Commits

Tuk Bredsdorff  committed 019616b Draft

Out-factored $strut_lengths.

  • Participants
  • Parent commits a49c9de

Comments (0)

Files changed (1)

File geodome_frame.rb

 PRIMARY_COLORS = ["Red", "Green", "Blue", "Yellow"]
 STRUT_NAMES = ["A", "B", "C", "D"]
 
-$strut_lengths = nil
 $strut_lengths_sorted = nil
 
 
 				prompts = ["Width:", "Depth:"]
 				size = inputbox prompts, STRUT_SIZE, "Strut Dimensions"
 				if size
-					$strut_lengths = find_strut_lengths
-					$strut_lengths_sorted = $strut_lengths.keys.sort
+					$strut_lengths_sorted = find_strut_lengths.keys.sort
 					
 					create_frame edges, center, size
 					print_strut_lengths