Class: Rex::Post::IO
- Inherits:
-
Object
- Object
- Rex::Post::IO
- Defined in:
- lib/rex/post/io.rb
Overview
Base IO class that is modeled after the ruby IO class.
Direct Known Subclasses
Instance Method Summary collapse
-
#binmode ⇒ Object
I/O operations.
- #close ⇒ Object
- #close_read ⇒ Object
- #close_write ⇒ Object
- #closed? ⇒ Boolean
- #each(sep = $/, &block) ⇒ Object
- #each_byte(&block) ⇒ Object
- #each_line(sep = $/, &block) ⇒ Object
- #eof ⇒ Object
-
#eof? ⇒ Boolean
Conditionals.
- #fcntl(cmd, arg) ⇒ Object
- #flush ⇒ Object
- #fsync ⇒ Object
- #getc ⇒ Object
- #gets(sep = $/) ⇒ Object
- #ioctl(cmd, arg) ⇒ Object
- #isatty ⇒ Object
- #lineno ⇒ Object
- #pos ⇒ Object
- #print ⇒ Object
- #printf(fmt, *args) ⇒ Object
- #putc(obj) ⇒ Object
- #puts(obj) ⇒ Object
- #read(length = nil, buffer = nil) ⇒ Object
- #readchar ⇒ Object
- #readline(sep = $/) ⇒ Object
- #readlines(sep = $/) ⇒ Object
- #rewind ⇒ Object
- #seek(offset, whence = SEEK_SET) ⇒ Object
- #stat ⇒ Object
- #sync ⇒ Object
- #sysread(length) ⇒ Object
- #sysseek(offset, whence = SEEK_SET) ⇒ Object
- #syswrite(buf) ⇒ Object
- #tell ⇒ Object
- #tty? ⇒ Boolean
- #ungetc(val) ⇒ Object
- #write(buf) ⇒ Object
Instance Method Details
#binmode ⇒ Object
I/O operations
41 42 43 |
# File 'lib/rex/post/io.rb', line 41 def binmode raise NotImplementedError end |
#close ⇒ Object
45 46 47 |
# File 'lib/rex/post/io.rb', line 45 def close raise NotImplementedError end |
#close_read ⇒ Object
49 50 51 |
# File 'lib/rex/post/io.rb', line 49 def close_read raise NotImplementedError end |
#close_write ⇒ Object
53 54 55 |
# File 'lib/rex/post/io.rb', line 53 def close_write raise NotImplementedError end |
#closed? ⇒ Boolean
27 28 29 |
# File 'lib/rex/post/io.rb', line 27 def closed? raise NotImplementedError end |
#each(sep = $/, &block) ⇒ Object
57 58 59 |
# File 'lib/rex/post/io.rb', line 57 def each(sep = $/, &block) raise NotImplementedError end |
#each_byte(&block) ⇒ Object
65 66 67 |
# File 'lib/rex/post/io.rb', line 65 def each_byte(&block) raise NotImplementedError end |
#each_line(sep = $/, &block) ⇒ Object
61 62 63 |
# File 'lib/rex/post/io.rb', line 61 def each_line(sep = $/, &block) raise NotImplementedError end |
#eof? ⇒ Boolean
Conditionals
23 24 25 |
# File 'lib/rex/post/io.rb', line 23 def eof? return eof end |
#fcntl(cmd, arg) ⇒ Object
73 74 75 |
# File 'lib/rex/post/io.rb', line 73 def fcntl(cmd, arg) raise NotImplementedError end |
#flush ⇒ Object
77 78 79 |
# File 'lib/rex/post/io.rb', line 77 def flush raise NotImplementedError end |
#fsync ⇒ Object
81 82 83 |
# File 'lib/rex/post/io.rb', line 81 def fsync raise NotImplementedError end |
#gets(sep = $/) ⇒ Object
89 90 91 |
# File 'lib/rex/post/io.rb', line 89 def gets(sep = $/) raise NotImplementedError end |
#ioctl(cmd, arg) ⇒ Object
93 94 95 |
# File 'lib/rex/post/io.rb', line 93 def ioctl(cmd, arg) raise NotImplementedError end |
#isatty ⇒ Object
97 98 99 |
# File 'lib/rex/post/io.rb', line 97 def isatty raise NotImplementedError end |
#lineno ⇒ Object
101 102 103 |
# File 'lib/rex/post/io.rb', line 101 def lineno raise NotImplementedError end |
#pos ⇒ Object
105 106 107 |
# File 'lib/rex/post/io.rb', line 105 def pos raise NotImplementedError end |
#print ⇒ Object
109 110 111 |
# File 'lib/rex/post/io.rb', line 109 def print raise NotImplementedError end |
#printf(fmt, *args) ⇒ Object
113 114 115 |
# File 'lib/rex/post/io.rb', line 113 def printf(fmt, *args) raise NotImplementedError end |
#putc(obj) ⇒ Object
117 118 119 |
# File 'lib/rex/post/io.rb', line 117 def putc(obj) raise NotImplementedError end |
#puts(obj) ⇒ Object
121 122 123 |
# File 'lib/rex/post/io.rb', line 121 def puts(obj) raise NotImplementedError end |
#read(length = nil, buffer = nil) ⇒ Object
125 126 127 |
# File 'lib/rex/post/io.rb', line 125 def read(length = nil, buffer = nil) raise NotImplementedError end |
#readchar ⇒ Object
129 130 131 |
# File 'lib/rex/post/io.rb', line 129 def readchar raise NotImplementedError end |
#readline(sep = $/) ⇒ Object
133 134 135 |
# File 'lib/rex/post/io.rb', line 133 def readline(sep = $/) raise NotImplementedError end |
#readlines(sep = $/) ⇒ Object
137 138 139 |
# File 'lib/rex/post/io.rb', line 137 def readlines(sep = $/) raise NotImplementedError end |
#rewind ⇒ Object
141 142 143 |
# File 'lib/rex/post/io.rb', line 141 def rewind raise NotImplementedError end |
#seek(offset, whence = SEEK_SET) ⇒ Object
145 146 147 |
# File 'lib/rex/post/io.rb', line 145 def seek(offset, whence = SEEK_SET) raise NotImplementedError end |
#stat ⇒ Object
149 150 151 |
# File 'lib/rex/post/io.rb', line 149 def stat raise NotImplementedError end |
#sync ⇒ Object
153 154 155 |
# File 'lib/rex/post/io.rb', line 153 def sync raise NotImplementedError end |
#sysread(length) ⇒ Object
157 158 159 |
# File 'lib/rex/post/io.rb', line 157 def sysread(length) raise NotImplementedError end |
#sysseek(offset, whence = SEEK_SET) ⇒ Object
161 162 163 |
# File 'lib/rex/post/io.rb', line 161 def sysseek(offset, whence = SEEK_SET) raise NotImplementedError end |
#syswrite(buf) ⇒ Object
165 166 167 |
# File 'lib/rex/post/io.rb', line 165 def syswrite(buf) raise NotImplementedError end |
#tell ⇒ Object
169 170 171 |
# File 'lib/rex/post/io.rb', line 169 def tell return pos end |
#tty? ⇒ Boolean
31 32 33 |
# File 'lib/rex/post/io.rb', line 31 def tty? return isatty end |
#ungetc(val) ⇒ Object
173 174 175 |
# File 'lib/rex/post/io.rb', line 173 def ungetc(val) raise NotImplementedError end |
#write(buf) ⇒ Object
177 178 179 |
# File 'lib/rex/post/io.rb', line 177 def write(buf) raise NotImplementedError end |