9 lines
177 B
Ruby
9 lines
177 B
Ruby
# Pangram class
|
|
class Pangram
|
|
def self.pangram?(sentence)
|
|
sentence.downcase!
|
|
('a'..'z').each { |char| return false unless sentence.include?(char) }
|
|
true
|
|
end
|
|
end
|