lib/nrser/errors/nicer_error.rb
# Format a segment of the error message.
# 
# Strings are simply returned. Other things are inspected (for now).
# 
# @param [Object] segment
#   The segment.
# 
# @return [String]
#   The formatted string for the segment.
# 
# @todo
#   This should talk to config when that comes about to find out how to
#   dump things.
# 
Format a segment of the error message.
Strings are simply returned. Other things are inspected (for now).
Format a segment of the error message . Strings are simply returned . Other things are inspected ( for now ) .
def format_message_segment segment
    return segment.to_summary if segment.respond_to?( :to_summary )
    return segment if String === segment
    segment.inspect
  end
def format_message_segment segment return segment . to_summary if segment . respond_to? ( :to_summary ) return segment if String === segment segment . inspect end
Format a segment of the error message.
Format a segment of the error message .
# TODO  Do better!
The formatted string for the segment.
The formatted string for the segment .
String
segment
<not_specific>
<not_specific>
segment The segment.
segment The segment .
todo
This should talk to config when that comes about to find out how to dump things.
This should talk to config when that comes about to find out how to dump things .