accept

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" } }

new

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

add_sample(lang, *args) Instance Public methods

new

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'

to_s

meth.to_s â string Instance Public methods Returns the name of the underlying method. "cat".method(:count).inspect #=> "#<Method: String#count>"

source_location

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)

parameters

meth.parameters â array Instance Public methods Returns the parameter information of this method.

owner

meth.owner â class_or_module Instance Public methods Returns the class or module that defines the method.

name

meth.name â symbol Instance Public methods Returns the name of the method.

inspect

meth.inspect â string Instance Public methods Returns the name of the underlying method. "cat".method(:count).inspect #=> "#<Method: String#count>"