lib/tty/prompt/choices.rb in tty-prompt-0.22.0 vs lib/tty/prompt/choices.rb in tty-prompt-0.23.0

- old
+ new

@@ -60,10 +60,11 @@ # @yield [Choice] # # @api public def each(&block) return to_enum unless block_given? + choices.each(&block) end # Add choice to collection # @@ -98,10 +99,10 @@ map { |choice| choice.public_send(name) } end # Find a matching choice # - # @exmaple + # @example # choices.find_by(:name, "small") # # @param [Symbol] attr # the attribute name # @param [Object] value