Sha256: 1043ef66562bd6a8932e2a2c4334e3c5aa11364f289f1ca7f559f67f03552129
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: In block form, yields the last number of ((<b>lines</b>)) of file ((<b>filename</b>)). In non-block form, it returns the lines as an array. - !ruby/struct:SM::Flow::P body: Note that this method slurps the entire file, so I don't recommend it for very large files. If you want an advanced form of ((<b>tail</b>)), I suggest using file-tail, by Florian Frank (available on the RAA). And no tail -f. - !ruby/struct:SM::Flow::VERB body: " # Returns last 3 lines of 'myfile'\n FileUtils.tail("myfile",3)\n" full_name: FileUtils#tail is_singleton: false name: tail params: (filename,lines=10) visibility: public
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.2 | doc/ri/FileUtils/tail-i.yaml |
facets-2.4.3 | doc/ri/FileUtils/tail-i.yaml |