Class: Zxcvbn::MatchBuilder Private
- Inherits:
-
Struct
- Object
- Struct
- Zxcvbn::MatchBuilder
- Defined in:
- lib/zxcvbn/match_builder.rb,
sig/zxcvbn/match_builder.rbs
Overview
Instance Attribute Summary collapse
- #ascending ⇒ Boolean? private
- #base_guesses ⇒ Numeric? private
- #base_token ⇒ String? private
- #day ⇒ Integer? private
- #dictionary_name ⇒ String? private
- #graph ⇒ String? private
- #guesses ⇒ Numeric? private
- #guesses_log10 ⇒ Float? private
- #i ⇒ Integer? private
- #j ⇒ Integer? private
- #l33t ⇒ Boolean? private
- #l33t_variations ⇒ Numeric? private
- #matched_word ⇒ String? private
- #month ⇒ Integer? private
- #pattern ⇒ String? private
- #rank ⇒ Integer? private
- #repeat_count ⇒ Integer? private
- #reversed ⇒ Boolean? private
- #separator ⇒ String? private
- #sequence_name ⇒ String? private
- #sequence_space ⇒ Integer? private
- #shifted_count ⇒ Integer? private
- #sub ⇒ Hash[String, String]? private
- #sub_display ⇒ String? private
- #token ⇒ String? private
- #turns ⇒ Integer? private
- #uppercase_variations ⇒ Numeric? private
- #year ⇒ Integer? private
Instance Method Summary collapse
-
#build ⇒ Match
private
Immutable match with the current attribute values.
-
#initialize ⇒ MatchBuilder
constructor
private
A new instance of MatchBuilder.
Constructor Details
#initialize ⇒ MatchBuilder
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MatchBuilder.
32 |
# File 'sig/zxcvbn/match_builder.rbs', line 32
def initialize: (?pattern: String?, ?i: Integer?, ?j: Integer?, ?token: String?, ?matched_word: String?, ?rank: Integer?, ?dictionary_name: String?, ?reversed: bool?, ?l33t: bool?, ?sub: Hash[String, String]?, ?sub_display: String?, ?guesses: Numeric?, ?guesses_log10: Float?, ?base_guesses: Numeric?, ?uppercase_variations: Numeric?, ?l33t_variations: Numeric?, ?base_token: String?, ?repeat_count: Integer?, ?sequence_name: String?, ?sequence_space: Integer?, ?ascending: bool?, ?graph: String?, ?turns: Integer?, ?shifted_count: Integer?, ?year: Integer?, ?month: Integer?, ?day: Integer?, ?separator: String?) -> void
|
Instance Attribute Details
#ascending ⇒ Boolean?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'sig/zxcvbn/match_builder.rbs', line 23 def ascending @ascending end |
#base_guesses ⇒ Numeric?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'sig/zxcvbn/match_builder.rbs', line 16 def base_guesses @base_guesses end |
#base_token ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'sig/zxcvbn/match_builder.rbs', line 19 def base_token @base_token end |
#day ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'sig/zxcvbn/match_builder.rbs', line 29 def day @day end |
#dictionary_name ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'sig/zxcvbn/match_builder.rbs', line 9 def dictionary_name @dictionary_name end |
#graph ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'sig/zxcvbn/match_builder.rbs', line 24 def graph @graph end |
#guesses ⇒ Numeric?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'sig/zxcvbn/match_builder.rbs', line 14 def guesses @guesses end |
#guesses_log10 ⇒ Float?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'sig/zxcvbn/match_builder.rbs', line 15 def guesses_log10 @guesses_log10 end |
#i ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 |
# File 'sig/zxcvbn/match_builder.rbs', line 4 def i @i end |
#j ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'sig/zxcvbn/match_builder.rbs', line 5 def j @j end |
#l33t ⇒ Boolean?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'sig/zxcvbn/match_builder.rbs', line 11 def l33t @l33t end |
#l33t_variations ⇒ Numeric?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'sig/zxcvbn/match_builder.rbs', line 18 def l33t_variations @l33t_variations end |
#matched_word ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'sig/zxcvbn/match_builder.rbs', line 7 def matched_word @matched_word end |
#month ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 |
# File 'sig/zxcvbn/match_builder.rbs', line 28 def month @month end |
#pattern ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
3 4 5 |
# File 'sig/zxcvbn/match_builder.rbs', line 3 def pattern @pattern end |
#rank ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 |
# File 'sig/zxcvbn/match_builder.rbs', line 8 def rank @rank end |
#repeat_count ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'sig/zxcvbn/match_builder.rbs', line 20 def repeat_count @repeat_count end |
#reversed ⇒ Boolean?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'sig/zxcvbn/match_builder.rbs', line 10 def reversed @reversed end |
#separator ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 31 32 |
# File 'sig/zxcvbn/match_builder.rbs', line 30 def separator @separator end |
#sequence_name ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'sig/zxcvbn/match_builder.rbs', line 21 def sequence_name @sequence_name end |
#sequence_space ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'sig/zxcvbn/match_builder.rbs', line 22 def sequence_space @sequence_space end |
#shifted_count ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'sig/zxcvbn/match_builder.rbs', line 26 def shifted_count @shifted_count end |
#sub ⇒ Hash[String, String]?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'sig/zxcvbn/match_builder.rbs', line 12 def sub @sub end |
#sub_display ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'sig/zxcvbn/match_builder.rbs', line 13 def sub_display @sub_display end |
#token ⇒ String?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'sig/zxcvbn/match_builder.rbs', line 6 def token @token end |
#turns ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'sig/zxcvbn/match_builder.rbs', line 25 def turns @turns end |
#uppercase_variations ⇒ Numeric?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'sig/zxcvbn/match_builder.rbs', line 17 def uppercase_variations @uppercase_variations end |
#year ⇒ Integer?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 |
# File 'sig/zxcvbn/match_builder.rbs', line 27 def year @year end |
Instance Method Details
#build ⇒ Match
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns immutable match with the current attribute values.
11 12 13 |
# File 'lib/zxcvbn/match_builder.rb', line 11 def build Match.new(**to_h.tap { |h| h[:sub]&.freeze }) end |