recv

basicsocket.recv(maxlen) => mesgbasicsocket.recv(maxlen, flags) => mesg Instance Public methods Receives a message. maxlen is the maximum number of bytes to receive. flags should be a bitwise OR of Socket::MSG_* constants. UNIXSocket.pair {|s1, s2| s1.puts "Hello World" p s2.recv(4) #=> "Hell" p s2.recv(4, Socket::MSG_PEEK) #=> "o Wo" p s2.recv(4) #=> "o Wo" p s2.recv(10) #=> "rld\n" }

new

WIN32OLE_TYPE.new(typelib, ole_class) â WIN32OLE_TYPE object Class Public methods Returns a new WIN32OLE_TYPE object. The first argument typelib specifies OLE type library name. The second argument specifies OLE class name. WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application') # => WIN32OLE_TYPE object of Application class of Excel.

__itemconfiginfo

__itemconfiginfo(container, *args) Class Public methods Alias for: itemconfiginfo

encode64

encode64(bin) Instance Public methods Returns the Base64-encoded version of bin. This method complies with RFC 2045. Line feeds are added to every 60 encoded charactors. require 'base64' Base64.encode64("Now is the time for all good coders\nto learn Ruby") Generates: Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g UnVieQ==

method_missing

method_missing(id, *args) Instance Public methods #method_missing(id, *args): execute undefined method as tcl/tk command id: method symbol *args: method arguments

max=

max=(max) Instance Public methods Sets the maximum size of the queue.

unadvise

WIN32OLE_EVENT#unadvise â nil Instance Public methods disconnects OLE server. If this method called, then the WIN32OLE_EVENT object does not receive the OLE server event any more. This method is trial implementation. ie = WIN32OLE.new('InternetExplorer.Application') ev = WIN32OLE_EVENT.new(ie) ev.on_event() {...} ... ev.unadvise

find_by

find_by(*args) Instance Public methods Finds the first record matching the specified conditions. There is no implied ordering so if order matters, you should specify it yourself. If no record is found, returns nil. Post.find_by name: 'Spartacus', rating: 4 Post.find_by "published_at < ?", 2.weeks.ago

to_i

to_i Instance Public methods Returns the memory address for this handle.

ipv6_loopback?

ipv6_loopback?() Instance Public methods Returns true for IPv6 loopback address (::1). It returns false otherwise.