This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

sync=

        # IO.sync=

(from ruby core)
---
    sync = boolean -> boolean

---

Sets the *sync* *mode* for the stream to the given value; returns the
given value.

Values for the sync mode:

*   `true`: All output is immediately flushed to the underlying
    operating system and is not buffered internally.
*   `false`: Output may be buffered internally.


Example;

    f = File.open('t.tmp', 'w')
    f.sync # => false
    f.sync = true
    f.sync # => true

Related: IO#fsync.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.