xx = if string.include?("1")
                    1
                  elsif host.include?("a")
...

Ruby Case statement with Regular...

by ysorigin.myopenid.com, August 20, 2009 04:36, 8 refactorings, tagged with ruby case regular expression

is any some short-hand for ...

Ab36cdd7a51942c562ae942a0dd07b45 Talk