--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Sets the ``sync mode'' to true or false. When sync mode is true, all output is immediately flushed to the underlying operating system and is not buffered internally. Returns the new state. See also IO#fsync. - !ruby/struct:SM::Flow::VERB body: " f = File.new("testfile")\n f.sync = true\n" - !ruby/struct:SM::Flow::P body: (produces no output) full_name: IO#sync= is_singleton: false name: sync= params: | ios.sync = boolean => boolean visibility: public