lib/reports.rb
# Format a string if needed (like for URLs)
Format a string if needed (like for URLs)
Format a string if needed ( like for URLs )
def format_str(value)
      value ||= '<none>'
      value = fmt ? (fmt % [value]) : value
      if max_length && (value.is_a? String) && value.length > max_length
        value = value[0..(max_length - 4)]
        value += ('.' * (max_length - value.length))
      end
      value
    end
def format_str ( value ) value ||= '<none>' value = fmt ? ( fmt % [ value ] ) : value if max_length && ( value . is_a? String ) && value . length > max_length value = value [ 0 .. ( max_length - 4 ) ] value += ( '.' * ( max_length - value . length ) ) end value end
Format a string if needed (like for URLs)
Format a string if needed ( like for URLs )
value