mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* ext/pathname/pathname.c (path_binread): Pathname#binread translated
from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2531892cbc
commit
2034fe610f
3 changed files with 25 additions and 4 deletions
|
@ -485,10 +485,6 @@ end
|
|||
|
||||
class Pathname # * IO *
|
||||
|
||||
# See <tt>IO.binread</tt>. Returns all the bytes from the file, or the first +N+
|
||||
# if specified.
|
||||
def binread(*args) IO.binread(@path, *args) end
|
||||
|
||||
# See <tt>IO.readlines</tt>. Returns all the lines from the file.
|
||||
def readlines(*args) IO.readlines(@path, *args) end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue