lib/tty/prompt/suggestion.rb in tty-prompt-0.19.0 vs lib/tty/prompt/suggestion.rb in tty-prompt-0.20.0
- old
+ new
@@ -31,10 +31,10 @@
attr_reader :plural_text
# Initialize a Suggestion
#
# @api public
- def initialize(options = {})
+ def initialize(**options)
@indent = options.fetch(:indent) { DEFAULT_INDENT }
@single_text = options.fetch(:single_text) { SINGLE_TEXT }
@plural_text = options.fetch(:plural_text) { PLURAL_TEXT }
@suggestions = []
@comparator = Distance.new