class RailsWithFirePHP::CGI
Public Class Methods
new(options={})
click to toggle source
# File lib/core/rails_with_firephp.rb, line 110 def initialize options={} _rwfp_set_options options ENV['HTTP_USER_AGENT'] = 'FirePHP/0.2.b.7' unless ENV['HTTP_USER_AGENT'] # for being callable from shell logheaders = _rwfp_initialize_request ENV['HTTP_USER_AGENT'] return if @firephpruby_skip logheaders.each_pair { |k,v| puts "#{k}: #{v}" } end
Public Instance Methods
dump(obj, label='')
click to toggle source
# File lib/core/rails_with_firephp.rb, line 123 def dump obj, label='' firelog obj,'DUMP', label end
firelog(msg,kind='LOG', label=nil)
click to toggle source
# File lib/core/rails_with_firephp.rb, line 117 def firelog msg,kind='LOG', label=nil return if @firephpruby_skip logheaders = _rwfp_build_headers msg,kind,label logheaders.each { |h| puts "#{h[0]}: #{h[1]}" } end
send_index_header()
click to toggle source
# File lib/core/rails_with_firephp.rb, line 126 def send_index_header # not needed since 0.2.b.4 or something like puts "X-Wf-1-Index: #{@fire_msg_index.to_s}" end