RosettaCodeData/Task/Inverted-syntax/Ruby/inverted-syntax-2.rb

5 lines
40 B
Ruby

7 => a
:x in b
p [a, b] # => [7, :x]