module DictClient::Formattable

Public Instance Methods

longest(list) click to toggle source
# File lib/dict_client/responses.rb, line 36
def longest list
  list.max{|a,b| a.length <=> b.length }.length
end
print_formatted(list, max_key, max_value) click to toggle source