Last active
April 24, 2016 13:08
-
-
Save vijithmv499/ca293996566f6904d2a7bb659b7a7947 to your computer and use it in GitHub Desktop.
Exercism assignment 7 - Pangram sentences (http://exercism.io/exercises/ruby/pangram/readme)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Pangram | |
| VERSION = 1 | |
| def self.is_pangram?(str) | |
| ref = ('a'..'z').to_a | |
| str.downcase.split('').select{|i| ref.include?(i)}.uniq.sort == ref | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment