Methods
F
P
T
Class Public methods
framework_version(framework)
    # File railties/lib/rails/info.rb, line 29
29:       def framework_version(framework)
30:         if Object.const_defined?(framework.classify)
31:           require "#{framework}/version"
32:           "#{framework.classify}::VERSION::STRING".constantize
33:         end
34:       end
frameworks()
    # File railties/lib/rails/info.rb, line 25
25:       def frameworks
26:         %w( active_record action_pack active_resource action_mailer active_support )
27:       end
property(name, value = nil)
    # File railties/lib/rails/info.rb, line 19
19:       def property(name, value = nil)
20:         value ||= yield
21:         properties << [name, value] if value
22:       rescue Exception
23:       end
to_html()
    # File railties/lib/rails/info.rb, line 48
48:       def to_html
49:         (table = '<table>').tap do
50:           properties.each do |(name, value)|
51:             table << %(<tr><td class="name">#{CGI.escapeHTML(name.to_s)}</td>)
52:             formatted_value = if value.kind_of?(Array)
53:                   "<ul>" + value.map { |v| "<li>#{CGI.escapeHTML(v.to_s)}</li>" }.join + "</ul>"
54:                 else
55:                   CGI.escapeHTML(value.to_s)
56:                 end
57:             table << %(<td class="value">#{formatted_value}</td></tr>)
58:           end
59:           table << '</table>'
60:         end
61:       end
to_s()
    # File railties/lib/rails/info.rb, line 36
36:       def to_s
37:         column_width = properties.names.map {|name| name.length}.max
38:         info = properties.map do |name, value|
39:           value = value.join(", ") if value.is_a?(Array)
40:           "%-#{column_width}s   %s" % [name, value]
41:         end
42:         info.unshift "About your application's environment"
43:         info * "\n"
44:       end