Module: Kernel

Defined in:
lib/fcgiwrap.rb

Instance Method Summary collapse

Instance Method Details



85
86
87
88
89
90
91
92
# File 'lib/fcgiwrap.rb', line 85

def print(*args)
  if FCGIWrap.cgi
    FCGIWrap.cgi.print(*args)
  else
    # IGNORE: 
    # STDERR.puts "WARN: Useless print"
  end
end

#puts(*args) ⇒ Object



93
94
95
# File 'lib/fcgiwrap.rb', line 93

def puts(*args)
  Kernel.print(*args.map{|s| t = s.dup.to_s; t !~ /\n$/ and t += "\n"; t })
end