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
GNUmakefile: no news yet...
[metropolis.git]
/
lib
/
metropolis
/
input_wrapper.rb
blob
12a1bccd8f161003407d19461aeaf24b7790d7c7
1
# -*- encoding: binary -*-
2
3
class Metropolis::InputWrapper
4
def initialize(env)
5
@input = env["rack.input"]
6
env["rack.input"] = self
7
end
8
9
def read(*args)
10
args.empty? and return read_all
11
ni
12
end
13
14
def ni(*args)
15
raise NotImplementedError
16
end
17
18
alias gets ni
19
alias each ni
20
alias rewind ni
21
end