method

cooked

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: IO
cooked() public

Yields self within cooked mode.

STDIN.cooked(&:gets)

will read and return a line with echo back and line editing.

You must require ‘io/console’ to use this method.

Show source
Register or log in to add new notes.