lib/rio/ios/null.rb in rio-0.5.1 vs lib/rio/ios/null.rb in rio-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===========================================================================
-# Copyright (c) 2005-2012 Christopher Kleckner
+# Copyright (c) 2005-2017 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -60,23 +60,18 @@
def closed?() not @open end
def each(sep_string=$/,&block) self end
def each_line(sep_string=$/,&block) self end
def each_byte(sep_string=$/,&block) self end
def eof?() true end
- #def fcntl(integer_cmd,arg) notsupported(:fcntl) end
- #def fileno() notsupported(:fileno) end
- #def to_i() notsupported(:to_i) end
def flush() nil end
def fsync() nil end
def getc() nil end
def gets(sep_string=$/) nil end
- #def ioctl(integer_cmd,arg) notsupported(:ioctl) end
def tty?() false end
def isatty() tty? end
def lineno() @lineno end
def lineno=(a) @lineno = a; lineno() end
- #def pid() notsupported(:pid) end
def pos() 0 end
def tell() pos() end
def pos=(v) @pos = v; pos end
def print(*objs) nil end
def printf(format,*objs) nil end
@@ -88,16 +83,9 @@
def readlines(sep_string=$/) [] end
def readpartial(maxlen,*args) raise EOFError end
def reopen(*args) self end
def rewind() 0 end
def seek(amount,whence) 0 end
- #def stat() notsupported(:stat) end
- #def sync() notsupported(:sync) end
- #def sync=(v) notsupported(:sync=) end
- #def sysread() notsupported(:sysread) end
- #def sysseek() notsupported(:sysseek) end
- #def syswrite() notsupported(:syswrite) end
- #def ungetc() notsupported(:ungetc) end
def write(str) str.length end
def callstr(func,*args)
self.class.to_s+'['+self.to_s+']'+'.'+func.to_s+'('+args.join(',')+')'
end