behavior

behavior() Instance Public methods Returns the current behavior or if one isn't set, defaults to :stderr.

config_accessor

config_accessor(*names) Instance Public methods Allows you to add shortcut so that you don't have to refer to attribute through config. Also look at the example for config to contrast. Defines both class and instance config accessors. class User include ActiveSupport::Configurable config_accessor :allowed_access end User.allowed_access # => nil User.allowed_access = false User.allowed_access # => false user = User.new user.allowed_access # => false user.allowed_acces

locale_charmap

Encoding.locale_charmap â string Class Public methods Returns the locale charmap name. It returns nil if no appropriate information. Debian GNU/Linux LANG=C Encoding.locale_charmap #=> "ANSI_X3.4-1968" LANG=ja_JP.EUC-JP Encoding.locale_charmap #=> "EUC-JP" SunOS 5 LANG=C Encoding.locale_charmap #=> "646" LANG=ja Encoding.locale_charmap #=> "eucJP" The result is highly platform dependent. So ::find may cause an error. If you need some encod

documentElement

documentElement() Instance Public methods IXMLDOMElement documentElement the root of the tree

[]

thr[sym] â obj or nil Instance Public methods Attribute ReferenceâReturns the value of a fiber-local variable (current thread's root fiber if not explicitely inside a Fiber), using either a symbol or a string name. If the specified variable does not exist, returns nil. [ Thread.new { Thread.current["name"] = "A" }, Thread.new { Thread.current[:name] = "B" }, Thread.new { Thread.current["name"] = "C" } ].each do |th| th.join puts "#{th.inspect}: #{th[:name]}" end prod

create_pie

create_pie(hh, mm, span, color='red') Instance Public methods

backtrace_locations

thr.backtrace_locations(*args) â array or nil Instance Public methods Returns the execution stack for the target threadâan array containing backtrace location objects. See Thread::Backtrace::Location for more information. This method behaves similarly to Kernel#caller_locations except it applies to a specific thread.

expected

expected() Instance Public methods

notify

notify(*opts) Instance Public methods ex) if you wish to output: "shell: job(#{@command}:#{@pid}) close pipe-out." then mes: "job(%id) close pipe-out." yorn: Boolean(@shell.debug? or @shell.verbose?)

tcp_server_loop

tcp_server_loop(host=nil, port) Class Public methods creates a TCP/IP server on port and calls the block for each connection accepted. The block is called with a socket and a client_address as an Addrinfo object. If host is specified, it is used with port to determine the server addresses. The socket is not closed when the block returns. So application should close it explicitly. This method calls the block sequentially. It means that the next connection is not accepted until the b