class String def pangram? (("a".."z").to_a - self.downcase.chars.uniq).empty? end end ["The quick brown fox jumped over the lazy dogs!", "The slow dog didn't"].each do |text| puts "#{text}: #{text.pangram?}" end