if (old == reader) {
return;
}
}
map.put(AttributeName.READER, reader);
InputStream istream = new ReaderInputStream(reader);
Ruby runtime = provider.getRuntime();
RubyIO io = new RubyIO(runtime, istream);
io.getOpenFile().getMainStream().setSync(true);
runtime.defineVariable(new InputGlobalVariable(runtime, "$stdin", io));
runtime.getObject().getConstantMapForWrite().put("STDIN", io);