Class: IO
Direct Known Subclasses
Defined Under Namespace
Constant Summary collapse
- SEEK_SET =
0
- SEEK_CUR =
1
- SEEK_END =
2
Instance Attribute Summary collapse
-
#sync ⇒ Object
Returns the value of attribute sync.
-
#tty ⇒ Object
Returns the value of attribute tty.
-
#write_proc ⇒ Object
Returns the value of attribute write_proc.
Instance Method Summary collapse
Instance Attribute Details
#sync ⇒ Object
Returns the value of attribute sync.
21 22 23 |
# File 'opal/opal/corelib/io.rb', line 21 def sync @sync end |
#tty ⇒ Object
Returns the value of attribute tty.
21 22 23 |
# File 'opal/opal/corelib/io.rb', line 21 def tty @tty end |
#write_proc ⇒ Object
Returns the value of attribute write_proc.
14 15 16 |
# File 'opal/opal/corelib/io.rb', line 14 def write_proc @write_proc end |
Instance Method Details
#closed? ⇒ Boolean
10 11 12 |
# File 'opal/opal/corelib/io.rb', line 10 def closed? @closed end |
#flush ⇒ Object
[View source]
23 24 25 |
# File 'opal/opal/corelib/io.rb', line 23 def flush # noop end |
#write(string) ⇒ Object
[View source]
16 17 18 19 |
# File 'opal/opal/corelib/io.rb', line 16 def write(string) `self.write_proc(string)` string.size end |