sysaccept

unixserver.sysaccept => file_descriptor Instance Public methods Accepts a new connection. It returns the new file descriptor which is an integer. UNIXServer.open("/tmp/sock") {|serv| UNIXSocket.open("/tmp/sock") {|c| fd = serv.sysaccept s = IO.new(fd) s.puts "hi" s.close p c.read #=> "hi\n" } }

chardev?

stat.chardev? â true or false Instance Public methods Returns true if the file is a character device, false if it isn't or if the operating system doesn't support this feature. File.stat("/dev/tty").chardev? #=> true

set_debug_output

set_debug_output(arg) Instance Public methods Alias for: debug_output=

remove

remove(*args) Instance Public methods Alias for: delete

flush

flush(flush=nil) Instance Public methods Flushes all the internal buffers of the GzipWriter object. The meaning of flush is same as in Zlib::Deflate#deflate. Zlib::SYNC_FLUSH is used if flush is omitted. It is no use giving flush Zlib::NO_FLUSH.

load_imports

load_imports() Instance Public methods Load the pending list of imported files.

opt_m

opt_m(flag=false) Instance Public methods

visit_Psych_Nodes_Sequence

visit_Psych_Nodes_Sequence(o) Instance Public methods

allow_ruby_exit=

allow_ruby_exit=(p1) Instance Public methods allow_ruby_exit = mode

try_convert

Hash.try_convert(obj) â hash or nil Class Public methods Try to convert obj into a hash, using #to_hash method. Returns converted hash or nil if obj cannot be converted for any reason. Hash.try_convert({1=>2}) # => {1=>2} Hash.try_convert("1=>2") # => nil