instance method
initialize_with_stdinput
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
initialize_with_stdinput(type = nil, stdinput = $stdin)
No documentation comment.
Parameters
-
typeopt = nil -
stdinputopt = $stdin
Source
# File actionpack/lib/action_controller/cgi_ext/stdinput.rb, line 17
def initialize_with_stdinput(type = nil, stdinput = $stdin)
@stdinput = stdinput
@stdinput.set_encoding(Encoding::BINARY) if @stdinput.respond_to?(:set_encoding)
initialize_without_stdinput(type || 'query')
end
Defined in actionpack/lib/action_controller/cgi_ext/stdinput.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::CgiExt::Stdinput