each_codepoint

ARGF.each_codepoint {|codepoint| block } â ARGF
ARGF.each_codepoint â an_enumerator
Instance Public methods

Iterates over each codepoint of each file in ARGF.

This method allows you to treat the files supplied on the command line as a single file consisting of the concatenation of each named file. After the last codepoint of the first file has been returned, the first codepoint of the second file is returned. The ARGF.filename method can be used to determine the name of the file in which the current codepoint appears.

If no block is given, an enumerator is returned instead.

doc_ruby_on_rails
2015-03-30 11:04:05
Comments
Leave a Comment

Please login to continue.