repo.or.cz
/
metropolis.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Rakefile: kill raa_update task
[metropolis.git]
/
lib
/
metropolis
/
input_wrapper.rb
blob
334caf6d0ac677da2462ca7f1e125e910b42fb54
1
# -*- encoding: binary -*-
2
3
class Metropolis::InputWrapper
4
include Metropolis::Constants
5
6
def initialize(env)
7
@input = env[Rack_Input]
8
env[Rack_Input] = self
9
end
10
11
def read(*args)
12
args.empty? and return read_all
13
ni
14
end
15
16
def ni(*args)
17
raise NotImplementedError
18
end
19
20
alias gets ni
21
alias each ni
22
alias rewind ni
23
end