What about using an Array difference here, e.g.:
```ruby
@available_numbers = (0..9).to_a - occupied_numbers
```
It looks better and is more readable IMO.

(The same is few lines below.)