Top Level Namespace
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Classes:
ARGF ,
Array ,
BasicObject ,
Binding ,
Class ,
Complex ,
Continuation ,
Dir ,
ENV ,
Encoding ,
Enumerator ,
FalseClass ,
Fiber ,
File ,
Float ,
Hash ,
IO ,
Integer ,
MatchData ,
Method ,
Module ,
NilClass ,
Numeric ,
Object ,
Pool ,
Proc ,
Ractor ,
Random ,
Range ,
Rational ,
Refinement ,
Regexp ,
RubyVM ,
String ,
Struct ,
Symbol ,
Thread ,
ThreadGroup ,
Time ,
TracePoint ,
TrueClass ,
UnboundMethod | |
Exceptions:
ArgumentError ,
ClosedQueueError ,
EOFError ,
EncodingError ,
Exception ,
FiberError ,
FloatDomainError ,
FrozenError ,
IOError ,
IndexError ,
Interrupt ,
KeyError ,
LoadError ,
LocalJumpError ,
NameError ,
NoMatchingPatternError ,
NoMatchingPatternKeyError ,
NoMemoryError ,
NoMethodError ,
NotImplementedError ,
RangeError ,
RegexpError ,
RuntimeError ,
ScriptError ,
SecurityError ,
SignalException ,
StandardError ,
StopIteration ,
SyntaxError ,
SystemCallError ,
SystemExit ,
SystemStackError ,
ThreadError ,
TypeError ,
UncaughtThrowError ,
ZeroDivisionError ,
fatal |
Constant Summary
-
ARGV =
ARGV
contains the command line arguments used to run ruby.A library like OptionParser can be used to process command-line arguments.
rb_argv
-
DATA =
$ cat t.rb
puts DATA.gets __END__
DATA is a File that contains the data section of the executed file. To create a data section use <tt>__END__</tt>
-
RUBY_COPYRIGHT =
The copyright string for ruby
MKSTR(copyright)
-
RUBY_DESCRIPTION =
MKSTR(description)
/* MKSTR(description) */ description
-
RUBY_ENGINE =
The engine or interpreter this ruby uses.
ruby_engine_name = MKSTR(engine)
-
RUBY_ENGINE_VERSION =
The version of the engine or interpreter this ruby uses.
(1 ? version : MKSTR(version))
-
RUBY_PATCHLEVEL =
The patchlevel for this ruby. If this is a development build of ruby the patchlevel will be -1
MKINT(patchlevel)
-
RUBY_PLATFORM =
The platform for this ruby
MKSTR(platform)
-
RUBY_RELEASE_DATE =
The date this ruby was released
MKSTR(release_date)
-
RUBY_REVISION =
The GIT commit hash for this ruby.
MKSTR(revision)
-
RUBY_VERSION =
The running version of ruby
(version = MKSTR(version))
-
STDERR =
Holds the original stderr
rb_stderr
-
STDIN =
Holds the original stdin
rb_stdin
-
STDOUT =
Holds the original stdout
rb_stdout
-
TOPLEVEL_BINDING =
The Binding of the top level scope
rb_binding_new()
Class Attribute Summary
- $!(*_) readonly
- $$(*_y) readonly
- $&(*_y) readonly
- $'(*_y) readonly
- $*(*var) readonly
- $+(*_y) readonly
- $, rw
-
$-0
rw
Alias for $/.
-
$-d(*dmy)
rw
Alias for $DEBUG.
-
$-F
rw
Alias for $;.
- $-i(*var) rw
-
$-v(*ptr)
rw
Alias for $VERBOSE.
-
$-w(*ptr)
rw
Alias for $VERBOSE.
- $-W(*dmy) rw
- $.(*var) rw
- $/ (also: .$-0) rw
- $0 (also: .$PROGRAM_NAME) rw
- $; (also: .$-F) rw
- $< readonly
- $=(*_y) rw
-
$>(*ptr)
rw
Alias for $stdout.
- $@(*_) rw
- $\(*_y) (also: .$LOADED_FEATURES) readonly
- $\\ rw
- $_(*_y) rw
- $`(*_y) readonly
- $DEBUG(*dmy) (also: .$-d) rw
- $FILENAME(*var) readonly
- $find_time_numguess(*data) readonly
-
$LOADED_FEATURES(*_y)
readonly
Alias for $.
-
$PROGRAM_NAME
rw
Alias for $0.
- $stderr(*ptr) rw
- $stdin(*ptr) rw
- $stdout(*ptr) (also: .$>) rw
- $VERBOSE(*ptr) (also: .$-v, .$-w) rw
- $~(*_y) rw
Class Method Summary
-
$?(*_y) ⇒ Boolean
The Process module is a collection of methods used to manipulate processes.
Class Attribute Details
$!(*_) (readonly)
[ GitHub ]# File 'eval.c', line 1755
static VALUE errinfo_getter(ID id, VALUE *_) { return get_errinfo(); }
$$(*_y) (readonly)
[ GitHub ]# File 'process.c', line 8629
static VALUE get_PROCESS_ID(ID _x, VALUE *_y) { return get_pid(); }
$&(*_y) (readonly)
[ GitHub ]# File 're.c', line 1895
static VALUE last_match_getter(ID _x, VALUE *_y) { return rb_reg_last_match(rb_backref_get()); }
$'(*_y) (readonly)
[ GitHub ]# File 're.c', line 1907
static VALUE postmatch_getter(ID _x, VALUE *_y) { return rb_reg_match_post(rb_backref_get()); }
$*(*var) (readonly)
[ GitHub ]# File 'io.c', line 13449
static VALUE argf_argv_getter(ID id, VALUE *var) { return argf_argv(*var); }
$+(*_y) (readonly)
[ GitHub ]# File 're.c', line 1913
static VALUE last_paren_match_getter(ID _x, VALUE *_y) { return rb_reg_match_last(rb_backref_get()); }
$, (rw)
[ GitHub ]# File 'io.c', line 14238
rb_define_hooked_variable("$,", &rb_output_fs, 0, deprecated_str_setter);
$-0 (rw)
Alias for $/.
# File 'io.c', line 14245
rb_define_hooked_variable("$-0", &rb_rs, 0, deprecated_str_setter);
$-d(*dmy) (rw)
Alias for $DEBUG.
$-F (rw)
Alias for $;.
# File 'string.c', line 12528
rb_define_hooked_variable("$-F", &rb_fs, 0, rb_fs_setter);
$-i(*var) (rw)
[ GitHub ]# File 'io.c', line 13376
static VALUE opt_i_get(ID id, VALUE *var) { return argf_inplace_mode_get(*var); }
$-v(*ptr) (rw)
Alias for $VERBOSE.
$-W(*dmy) (rw)
[ GitHub ]# File 'ruby.c', line 2653
static VALUE opt_W_getter(ID id, VALUE *dmy) { VALUE v = *rb_ruby_verbose_ptr(); switch (v) { case Qnil: return INT2FIX(0); case Qfalse: return INT2FIX(1); case Qtrue: return INT2FIX(2); default: return Qnil; } }
$-w(*ptr) (rw)
Alias for $VERBOSE.
$.(*var) (rw)
[ GitHub ]# File 'io.c', line 9330
static VALUE argf_lineno_getter(ID id, VALUE *var) { VALUE argf = *var; return INT2FIX(ARGF.last_lineno); }
$/ (rw) Also known as: ::$-0
[ GitHub ]# File 'io.c', line 14244
rb_define_hooked_variable("$/", &rb_rs, 0, deprecated_str_setter);
$0 (rw) Also known as: ::$PROGRAM_NAME
[ GitHub ]# File 'ruby.c', line 2699
rb_define_hooked_variable("$0", &rb_progname, 0, set_arg0);
$; (rw) Also known as: ::$-F
[ GitHub ]# File 'string.c', line 12527
rb_define_hooked_variable("$;", &rb_fs, 0, rb_fs_setter);
$< (readonly)
[ GitHub ]# File 'io.c', line 14449
rb_define_readonly_variable("$<", &argf);
$=(*_y) (rw)
[ GitHub ]# File 're.c', line 3980
static VALUE ignorecase_getter(ID _x, VALUE *_y) { rb_category_warn(RB_WARN_CATEGORY_DEPRECATED, "variable $= is no longer effective"); return Qfalse; }
$>(*ptr) (rw)
Alias for $stdout.
$@(*_) (rw)
[ GitHub ]# File 'eval.c', line 1776
static VALUE errat_getter(ID id, VALUE *_) { VALUE err = get_errinfo(); if (!NIL_P(err)) { return rb_get_backtrace(err); } else { return Qnil; } }
$\(*_y) (readonly) Also known as: ::$LOADED_FEATURES
[ GitHub ]# File 'load.c', line 171
static VALUE get_LOADED_FEATURES(ID _x, VALUE *_y) { return get_loaded_features(GET_VM()); }
$\\ (rw)
[ GitHub ]# File 'io.c', line 14246
rb_define_hooked_variable("$\\", &rb_output_rs, 0, deprecated_str_setter);
$_(*_y) (rw)
[ GitHub ]# File 'io.c', line 13541
static VALUE get_LAST_READ_LINE(ID _x, VALUE *_y) { return rb_lastline_get(); }
$`(*_y) (readonly)
[ GitHub ]# File 're.c', line 1901
static VALUE prematch_getter(ID _x, VALUE *_y) { return rb_reg_match_pre(rb_backref_get()); }
$DEBUG(*dmy) (rw) Also known as: ::$-d
[ GitHub ]# File 'ruby.c', line 2670
static VALUE debug_getter(ID id, VALUE *dmy) { return *rb_ruby_debug_ptr(); }
$FILENAME(*var) (readonly)
[ GitHub ]# File 'io.c', line 13209
static VALUE argf_filename_getter(ID id, VALUE *var) { return argf_filename(*var); }
$find_time_numguess(*data) (readonly)
[ GitHub ]# File 'time.c', line 3046
static VALUE find_time_numguess_getter(ID name, VALUE *data) { unsigned long long *numguess = (void *)data; return ULL2NUM(*numguess); }
$LOADED_FEATURES(*_y) (readonly)
Alias for $.
$PROGRAM_NAME (rw)
Alias for $0.
# File 'ruby.c', line 2700
rb_define_hooked_variable("$PROGRAM_NAME", &rb_progname, 0, set_arg0);
$stderr(*ptr) (rw)
[ GitHub ]# File 'io.c', line 8469
static VALUE stderr_getter(ID id, VALUE *ptr) { return rb_ractor_stderr(); }
$stdin(*ptr) (rw)
[ GitHub ]# File 'io.c', line 8443
static VALUE stdin_getter(ID id, VALUE *ptr) { return rb_ractor_stdin(); }
$stdout(*ptr) (rw) Also known as: ::$>
[ GitHub ]# File 'io.c', line 8456
static VALUE stdout_getter(ID id, VALUE *ptr) { return rb_ractor_stdout(); }
$VERBOSE(*ptr) (rw) Also known as: ::$-v, ::$-w
[ GitHub ]# File 'ruby.c', line 2641
static VALUE verbose_getter(ID id, VALUE *ptr) { return *rb_ruby_verbose_ptr(); }
$~(*_y) (rw)
[ GitHub ]# File 're.c', line 4003
static VALUE get_LAST_MATCH_INFO(ID _x, VALUE *_y) { return match_getter(); }
Class Method Details
$?(*_y) ⇒ Boolean
The Process module is a collection of methods used to manipulate processes.
# File 'process.c', line 8623
static VALUE get_CHILD_STATUS(ID _x, VALUE *_y) { return rb_last_status_get(); }