Public Instance methods
pretty (options={})
Returns a string containing the list of names in first-last order, correctly delimited by commas and and
Show
Hide
Source
def pretty(options={}) names = map { |n| n.display_order(options) } return to_s if names.nil? or names.length < 1 return names[0].to_s if names.length == 1 names[0..-2].join(", ") + " and " + names[-1] end