Feature #14245

Updated by shugo (Shugo Maeda) almost 4 years ago

Some people use without knowing that it's defined in IO and pipes can be opened. 

 p"|echo hello") #-> "hello" 

 How about to add, File.binread, File.foreach etc. (similar version to 
 Code like is considered to have no intention to open pipes. 

 Implementation by prelude.rb is suggested by normalperson in #14239: #14329: 

 > I like that idea, I've been rewriting some stuff to use 
 > ", &:read)" instead of 
 > Now, can we implement these new singleton methods in 
 > prelude.rb instead of writing in C? :)