lib/kitchen/search_history.rb
# Returns the history as a string
#
# @param missing_string [String] if there's a missing part of the history, this string
#   is used in its place
# @return [String]
#
Returns the history as a string
Returns the history as a string
def to_s(missing_string='?')
      array = to_a
      array.shift while array.any? && array[0].nil?
      array.map { |item| "[#{item || missing_string}]" }.join(' ')
    end
def to_s ( missing_string = '?' ) array = to_a array . shift while array . any? && array [ 0 ] . nil? array . map { | item | "[#{item || missing_string}]" } . join ( ' ' ) end
Returns the history as a string
Returns the history as a string
None
String
missing_string
if there's a missing part of the history, this string is used in its place
if there ' s a missing part of the history this string is used in its place