Quantcast
Channel: Dave Copeland :ruby:
Viewing all articles
Browse latest Browse all 613

Article 0

$
0
0

Thus, if you have something like

case foo
when Bar if foo.invalid?
# ...
when Widget
# ...
end

i.e. you expect either an invalid Bar or a Widget to be returned.

If neither happens, you cannot debug this without trying again with puts or pry.


Viewing all articles
Browse latest Browse all 613