Class: Passphrase::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/passphrase/default.rb

Overview

Class instance variables in this class define default values for Passphrase options and the range for the number of words that can be specified for a passphrase on the command-line.

Class Attribute Summary collapse

Class Attribute Details

.number_rangeRange (readonly)

Returns an arbitrary range specifying the allowable number of words in a passphrase, referenced by the CLI.parse method.

Returns:

  • (Range)

    an arbitrary range specifying the allowable number of words in a passphrase, referenced by the CLI.parse method



12
13
14
# File 'lib/passphrase/default.rb', line 12

def number_range
  @number_range
end

.optionsHash (readonly)

Returns the default options used to instantiate a Passphrase object.

Returns:

  • (Hash)

    the default options used to instantiate a Passphrase object



9
10
11
# File 'lib/passphrase/default.rb', line 9

def options
  @options
end