recvfrom

ipsocket.recvfrom(maxlen) => [mesg, ipaddr]ipsocket.recvfrom(maxlen, flags) => [mesg, ipaddr] Instance Public methods Receives a message and return the message as a string and an address which the message come from. maxlen is the maximum number of bytes to receive. flags should be a bitwise OR of Socket::MSG_* constants. ipaddr is same as IPSocket#{peeraddr,addr}. u1 = UDPSocket.new u1.bind("127.0.0.1", 4913) u2 = UDPSocket.new u2.send "uuuu", 0, "127.0.0.1", 4913 p u

new

new(irb, workspace = nil, input_method = nil, output_method = nil) Class Public methods Creates a new IRB context. The optional input_method argument: nil uses stdin or Readline String uses a File other uses this as InputMethod

__exit__

__exit__(ret = 0) Instance Public methods Alias for: exit

_set_last_value

_set_last_value(value) Instance Public methods See set_last_value set_last_value

change_workspace

change_workspace(*_main) Instance Public methods Changes the current workspace to given object or binding. If the optional argument is omitted, the workspace will be home_workspace which is inherited from TOPLEVEL_BINDING or the main object, IRB.conf[:MAIN_CONTEXT] when irb was initialized. See IRB::WorkSpace.new for more information.

debug?

debug?() Instance Public methods Whether or not debug mode is enabled, see debug_level=.

debug_level=

debug_level=(value) Instance Public methods Sets the debug level of irb Can also be set using the --irb_debug command line option. See Command line options at IRB for more command line options.

eval_history=

eval_history=(no) Instance Public methods Sets command result history limit. no is an Integer or nil. Returns no of history items if greater than 0. If no is 0, the number of history items is unlimited. If no is nil, execution result history isn't used (default).

exit

exit(ret = 0) Instance Public methods Exits the current session, see IRB.irb_exit __exit__

file_input?

file_input?() Instance Public methods Whether io uses a File for the input_method passed when creating the current context, see ::new