class Alfabet
Constants
- LETTERS
Attributes
lang[R]
order[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/freshmind/alfabet.rb, line 8 def initialize(options = {}) @lang = options.fetch(:lang) { :en } @order = options.fetch(:order){ :ordered } end
Public Instance Methods
list()
click to toggle source
# File lib/freshmind/alfabet.rb, line 13 def list res = (LETTERS[lang] * 2)[0, 40] res = res.sample(res.size) if order.to_sym == :random res end