Method: Rails::Info.to_s

Defined in:
railties/lib/rails/info.rb

.to_sObject Also known as: inspect



31
32
33
34
35
36
37
38
39
# File 'railties/lib/rails/info.rb', line 31

def to_s
  column_width = properties.names.map(&: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