Is there a more concise way of structuring the following if statement?
if self.itemsize.downcase.include? "a3" or
self.itemsize.downcase.include? "a4" or
self.itemsize.downcase.include? "a5" or
self.itemsize.downcase.include? "dl"
puts "yadda yadda"
end
Perhaps with an array? eg if self.itemsize.downcase.include? ["a3", "a4", "a5", "dl"]
Solution with a regular expression: