Class: Alone::OutputTrap
- Inherits:
-
Object
- Object
- Alone::OutputTrap
- Defined in:
- lib/al_main.rb
Overview
Note:
httpヘッダを出すために、一時的に出力をトラップする。
Alone標準出力トラップクラス
Instance Method Summary (collapse)
Instance Method Details
- (Object) flush
380 381 |
# File 'lib/al_main.rb', line 380 def flush() end |
- (Object) write(s)
373 374 375 376 377 378 |
# File 'lib/al_main.rb', line 373 def write( s ) $stdout = STDOUT $stderr = STDOUT Alone::send_http_headers() print( s ) end |