unixserver.accept => unixsocket Instance Public methods Accepts a new connection. It returns new UNIXSocket object. UNIXServer.open("/tmp/sock") {|serv| UNIXSocket.open("/tmp/sock") {|c| s = serv.accept s.puts "hi" s.close p c.read #=> "hi\n" } }
UNIXServer.new(path) => unixserver Class Public methods Creates a new UNIX server socket bound to path. serv = UNIXServer.new("/tmp/sock") s = serv.accept p s.read
add_sample(lang, *args) Instance Public methods
new(base) Class Public methods @@font = 'Helvetica 14' @@font = 'Courier 12' @@font = 'clearlyu 16' @@font = 'fixed 12' @@font = 'Times 12' @@font = 'Newspaper 12' @@font = '{New century schoolbook} 12'
meth.to_s â string Instance Public methods Returns the name of the underlying method. "cat".method(:count).inspect #=> "#<Method: String#count>"
meth.source_location â [String, Fixnum] Instance Public methods Returns the Ruby source filename and line number containing this method or nil if this method was not defined in Ruby (i.e. native)
meth.parameters â array Instance Public methods Returns the parameter information of this method.
meth.owner â class_or_module Instance Public methods Returns the class or module that defines the method.
meth.name â symbol Instance Public methods Returns the name of the method.
meth.inspect â string Instance Public methods Returns the name of the underlying method. "cat".method(:count).inspect #=> "#<Method: String#count>"
Page 516 of 2275