DEV Community

Discussion on: The Surprising Case of `gets` in Ruby

Collapse
 
baweaver profile image
Brandon Weaver

The same with IO which means this same concept applies to files and other IO-like areas. Being explicit about this certainly helps clear up any ambiguity with the Kernel methods, and can even provide some intuition to its dual puts in cases like File#puts