Skip to content

Instantly share code, notes, and snippets.

@vijithmv499
Last active April 24, 2016 13:08
Show Gist options
  • Select an option

  • Save vijithmv499/ca293996566f6904d2a7bb659b7a7947 to your computer and use it in GitHub Desktop.

Select an option

Save vijithmv499/ca293996566f6904d2a7bb659b7a7947 to your computer and use it in GitHub Desktop.
Exercism assignment 7 - Pangram sentences (http://exercism.io/exercises/ruby/pangram/readme)
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