I am working through a book which gives examples of Ranges being converted to equivalent arrays using their "to_a" methods
When i run the code in irb I get the following warning
warning: default `to_a' will be obsolete
…
The best way I can describe what I'm looking for is to show you the failed code I've tried thus far:
case car
when ['honda', 'acura'].include?(car)
# code
when 'toyota' || 'lexus'
# code
end
I've got about 4 or 5 different when …