class VGen::LetterGen

Public Class Methods

new( only: (("A".."Z").to_a + ("a".."z").to_a), except: [] ) click to toggle source
# File lib/v_gen/letter_gen.rb, line 3
def initialize(
      only: (("A".."Z").to_a + ("a".."z").to_a),
      except: []
    )
  @only, @except = only, except
end

Public Instance Methods

call() click to toggle source
# File lib/v_gen/letter_gen.rb, line 10
def call()
  (@only.to_a - @except.to_a).sample
end