method

to_s

v3.1.0 - Show latest stable - Class: Rails::Info
to_s()
public

No documentation available.

# File railties/lib/rails/info.rb, line 36
      def to_s
        column_width = properties.names.map {|name| name.length}.max
        info = properties.map do |name, value|
          value = value.join(", ") if value.is_a?(Array)
          "%-#{column_width}s   %s" % [name, value]
        end
        info.unshift "About your application's environment"
        info * "\n"
      end