|
| 1 | +# <!-- rdoc-file=io.c --> |
| 2 | +# ARGF is a stream designed for use in scripts that process files given as |
| 3 | +# command-line arguments or passed in via STDIN. |
| 4 | +# |
| 5 | +# See ARGF (the class) for more details. |
| 6 | +# |
1 | 7 | ARGF: RBS::Unnamed::ARGFClass |
2 | 8 |
|
| 9 | +# <!-- rdoc-file=ruby.c --> |
| 10 | +# ARGV contains the command line arguments used to run ruby. |
| 11 | +# |
| 12 | +# A library like OptionParser can be used to process command-line arguments. |
| 13 | +# |
3 | 14 | ARGV: Array[String] |
4 | 15 |
|
5 | 16 | CROSS_COMPILING: true? |
6 | 17 |
|
| 18 | +# <!-- rdoc-file=ruby.c --> |
| 19 | +# DATA is a File that contains the data section of the executed file. To create |
| 20 | +# a data section use `__END__`: |
| 21 | +# |
| 22 | +# $ cat t.rb |
| 23 | +# puts DATA.gets |
| 24 | +# __END__ |
| 25 | +# hello world! |
| 26 | +# |
| 27 | +# $ ruby t.rb |
| 28 | +# hello world! |
| 29 | +# |
7 | 30 | DATA: File |
8 | 31 |
|
| 32 | +# <!-- rdoc-file=version.c --> |
| 33 | +# The copyright string for ruby |
| 34 | +# |
9 | 35 | RUBY_COPYRIGHT: String |
10 | 36 |
|
| 37 | +# <!-- rdoc-file=version.c --> |
| 38 | +# The full ruby version string, like `ruby -v` prints |
| 39 | +# |
11 | 40 | RUBY_DESCRIPTION: String |
12 | 41 |
|
| 42 | +# <!-- rdoc-file=version.c --> |
| 43 | +# The engine or interpreter this ruby uses. |
| 44 | +# |
13 | 45 | RUBY_ENGINE: String |
14 | 46 |
|
| 47 | +# <!-- rdoc-file=version.c --> |
| 48 | +# The version of the engine or interpreter this ruby uses. |
| 49 | +# |
15 | 50 | RUBY_ENGINE_VERSION: String |
16 | 51 |
|
| 52 | +# <!-- rdoc-file=version.c --> |
| 53 | +# The patchlevel for this ruby. If this is a development build of ruby the |
| 54 | +# patchlevel will be -1 |
| 55 | +# |
17 | 56 | RUBY_PATCHLEVEL: Integer |
18 | 57 |
|
| 58 | +# <!-- rdoc-file=version.c --> |
| 59 | +# The platform for this ruby |
| 60 | +# |
19 | 61 | RUBY_PLATFORM: String |
20 | 62 |
|
| 63 | +# <!-- rdoc-file=version.c --> |
| 64 | +# The date this ruby was released |
| 65 | +# |
21 | 66 | RUBY_RELEASE_DATE: String |
22 | 67 |
|
| 68 | +# <!-- rdoc-file=version.c --> |
| 69 | +# The GIT commit hash for this ruby. |
| 70 | +# |
23 | 71 | RUBY_REVISION: String |
24 | 72 |
|
| 73 | +# <!-- rdoc-file=version.c --> |
| 74 | +# The running version of ruby |
| 75 | +# |
25 | 76 | RUBY_VERSION: String |
26 | 77 |
|
| 78 | +# <!-- rdoc-file=io.c --> |
| 79 | +# Holds the original stderr |
| 80 | +# |
27 | 81 | STDERR: IO |
28 | 82 |
|
| 83 | +# <!-- rdoc-file=io.c --> |
| 84 | +# Holds the original stdin |
| 85 | +# |
29 | 86 | STDIN: IO |
30 | 87 |
|
| 88 | +# <!-- rdoc-file=io.c --> |
| 89 | +# Holds the original stdout |
| 90 | +# |
31 | 91 | STDOUT: IO |
32 | 92 |
|
| 93 | +# <!-- rdoc-file=vm.c --> |
| 94 | +# The Binding of the top level scope |
| 95 | +# |
33 | 96 | TOPLEVEL_BINDING: Binding |
0 commit comments