Sha256: 9fb28c8a8e4fd38b5f8e31f5f857abd7bf4fae11fba65c4941a4a1c46487940c

Contents?: true

Size: 206 Bytes

Versions: 7

Compression:

Stored size: 206 Bytes

Contents

module CodiceFiscale
  module Alphabet
    extend self

    def vowels
      %w[A E I O U]
    end

    def consonants
      letters - vowels
    end

    def letters
      ('A'..'Z').to_a
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
codice-fiscale-1.0.1 lib/codice_fiscale/alphabet.rb
codice-fiscale-1.0.0 lib/codice_fiscale/alphabet.rb
codice-fiscale-0.0.9 lib/codice_fiscale/alphabet.rb
codice-fiscale-0.0.8 lib/codice_fiscale/alphabet.rb
codice-fiscale-0.0.7 lib/codice_fiscale/alphabet.rb
codice-fiscale-0.0.6 lib/codice_fiscale/alphabet.rb
codice-fiscale-0.0.5 lib/codice_fiscale/alphabet.rb