Methods
Constants
TEMPLATE_DIR = "#{File.dirname(__FILE__)}/templates"
DEFAULT_TERMINAL_COLORS = "\e[0m\e[37m\e[40m"
Public Class methods
new(input, options = {})
    # File lib/passenger/console_text_template.rb, line 25
25:         def initialize(input, options = {})
26:                 @buffer = ''
27:                 if input[:file]
28:                         data = File.read("#{TEMPLATE_DIR}/#{input[:file]}.txt.erb")
29:                 else
30:                         data = input[:text]
31:                 end
32:                 @template = ERB.new(substitute_color_tags(data),
33:                         nil, nil, '@buffer')
34:                 options.each_pair do |name, value|
35:                         self[name] = value
36:                 end
37:         end
Public Instance methods
[]=(name, value)
    # File lib/passenger/console_text_template.rb, line 39
39:         def []=(name, value)
40:                 instance_variable_set("@#{name}".to_sym, value)
41:                 return self
42:         end
result()
    # File lib/passenger/console_text_template.rb, line 44
44:         def result
45:                 return @template.result(binding)
46:         end