SHOW:
|
|
- or go back to the newest paste.
1 | - | raise ArgumentError.new "Coordinates must be passed in as arrays. Ex: [1,2]" unless |
1 | + | unless (first_coordinate.is_a?(Array) && second_coordinate.is_a?(Array)) |
2 | - | first_coordinate.is_a?(Array) && second_coordinate.is_a?(Array) |
2 | + | raise ArgumentError.new "Coordinates must be passed in as arrays. Ex: [1,2]" |
3 | end |