Module: Kernel
- Defined in:
- lib/fcgiwrap.rb
Instance Method Summary collapse
Instance Method Details
#print(*args) ⇒ Object
67 68 69 70 71 72 73 74 |
# File 'lib/fcgiwrap.rb', line 67 def print(*args) if FCGIWrap.cgi FCGIWrap.cgi.print(*args) else # IGNORE: # STDERR.puts "WARN: Useless print" end end |
#puts(*args) ⇒ Object
75 76 77 |
# File 'lib/fcgiwrap.rb', line 75 def puts(*args) Kernel.print(*args.map{|s| t = s.dup.to_s; t !~ /\n$/ and t += "\n"; t }) end |