How do you do the reverse of
asd = 'qwe'
asd.match('qwe') do
p 'it matches'
else
p 'it doesnt match'
end
By reverse, I mean
asd.does_not_match('qwe') do
p 'it doesnt match'
else
p 'it matches'
end
What is the syntax for 'doesn't match'?
!asd.match('qwe')ifstatement to make this work properly in the first place --> addifbeforeasd.match('qwe')and then removedo.