Class: IO
- Inherits:
-
Object
- Object
- IO
- Defined in:
- opal/opal/corelib/io.rb
Direct Known Subclasses
Defined Under Namespace
Constant Summary
- SEEK_SET =
0
- SEEK_CUR =
1
- SEEK_END =
2
Instance Attribute Summary collapse
-
#sync ⇒ Object
Returns the value of attribute sync.
-
#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 |
#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
#write(string) ⇒ Object
16 17 18 19 |
# File 'opal/opal/corelib/io.rb', line 16 def write(string) `self.write_proc(string)` string.size end |