Sha256: 490aea5b03fc00e7131fb3f77425148417887fdc9f669fc19deeb8085d002c9c
Contents?: true
Size: 540 Bytes
Versions: 4
Compression:
Stored size: 540 Bytes
Contents
# frozen_string_literal: true require 'wordlist/modifiers/mutate' module Wordlist module Modifiers # # Lazily enumerates through every possible upper/lower-case variation of # each word in the wordlist. # # @since 1.0.0 # class MutateCase < Mutate # # Initializes the case mutator. # # @param [Enumerable] wordlist # The wordlist to modify. # def initialize(wordlist) super(wordlist,/[[:alpha:]]/) { |letter| letter.swapcase } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems