Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - cars = @cars.size
- - if cars > 8
- - first_off = 8
- - else
- - first_off = @cars.size
- - if cars >= 17
- - second_off = 17
- - elsif cars >= 9
- - second_off = @cars.size
- - if cars > 24
- - third_off = 24
- - elsif cars >= 17
- - third_off = @cars.size
- - scroll_pane_one = @cars[0,first_off]
- - scroll_pane_two = @cars[8,second_off] unless second_off.nil?
- - scroll_pane_three = @cars[16,third_off] unless third_off.nil?
Add Comment
Please, Sign In to add comment