_N

_N(square) Instance Public methods Display a square number as a standard chess square notation.

new

new(parent = nil) Class Public methods

scanf

scanf(format, &b) Instance Private methods Scans STDIN for data matching format. See IO#scanf for details. See Scanf for details on creating a format string. You will need to require 'scanf' to use #scanf.

pp 2

pp(*objs) Instance Private methods prints arguments in pretty form. pp returns argument(s).

gem

gem(gem_name, *requirements) Instance Private methods Use #gem to activate a specific version of gem_name. requirements is a list of version requirements that the specified gem must match, most commonly â= example.version.numberâ. See Gem::Requirement for how to specify a version requirement. If you will be activating the latest version of a gem, there is no need to call #gem, Kernel#require will do the right thing for you. #gem returns true if the gem was activated, otherwise fal

warn

warn(msg, ...) â nil Instance Public methods Displays each of the given messages followed by a record separator on STDERR unless warnings have been disabled (for example with the -W0 flag). warn("warning 1", "warning 2") <em>produces:</em> warning 1 warning 2

untrace_var

untrace_var(symbol [, cmd] ) â array or nil Instance Public methods Removes tracing for the specified command on the given global variable and returns nil. If no command is specified, removes all tracing for that variable and returns an array containing the commands actually removed.

trap

Signal.trap( signal, command ) â objSignal.trap( signal ) {| | block } â obj Instance Public methods Specifies the handling of signals. The first parameter is a signal name (a string such as âSIGALRM'', âSIGUSR1'', and so on) or a signal number. The characters âSIG'' may be omitted from the signal name. The command or block specifies code to be run when the signal is raised. If the command is the string âIGNORE'' or âSIG_IGN'', the signal will be ignored. If the command is âDEFAUL

trace_var

trace_var(symbol, cmd ) â niltrace_var(symbol) {|val| block } â nil Instance Public methods Controls tracing of assignments to global variables. The parameter +symbol_ identifies the variable (as either a string name or a symbol identifier). cmd (which may be a string or a Proc object) or block is executed whenever the variable is assigned. The block or Proc object receives the variable's new value as a parameter. Also see Kernel::untrace_var. trace_var :$_, proc {|

throw

throw(tag [, obj]) Instance Public methods Transfers control to the end of the active catch block waiting for tag. Raises ArgumentError if there is no catch block for the tag. The optional second parameter supplies a return value for the catch block, which otherwise defaults to nil. For examples, see Kernel::catch.