class Ronin::CLI::Commands::Typo
Generates typos in words.
## Usage
ronin typo [options] [WORD ...]
## Options
-f, --file FILE Optional file to process --omit-chars Toggles whether to omit repeated characters --repeat-chars Toggles whether to repeat single characters --swap-chars Toggles whether to swap certain common character pairs --change-suffix Toggles whether to change the suffix of words -E, --enum Enumerates over every possible typo of a word -h, --help Print help information
## Arguments
[WORD ...] Optional word(s) to typo
Public Instance Methods
process_value(word)
click to toggle source
Processes each word.
@param [String] word
A word argument to typo.
# File lib/ronin/cli/commands/typo.rb, line 67 def process_value(word) if options[:enum] typo_generator.each_substitution(word) do |typo| puts typo end else puts typo_generator.substitute(word) end end