Class: Zxcvbn::MatchBuilder Private
- Inherits:
-
Struct
- Object
- Struct
- Zxcvbn::MatchBuilder
- Defined in:
- lib/zxcvbn/match_builder.rb
Overview
Instance Method Summary collapse
-
#build ⇒ Match
private
Immutable match with the current attribute values.
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 |