Skip to content

Commit 0d29fc9

Browse files
authored
Merge pull request #2182 from ruby/update-rdoc
Update docs with rdoc-6.10.0
2 parents cdce00a + e283410 commit 0d29fc9

File tree

3 files changed

+69
-1
lines changed

3 files changed

+69
-1
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ GEM
8585
rb-fsevent (0.11.2)
8686
rb-inotify (0.11.1)
8787
ffi (~> 1.0)
88-
rdoc (6.9.1)
88+
rdoc (6.10.0)
8989
psych (>= 4.0.0)
9090
regexp_parser (2.9.3)
9191
rspec (3.13.0)

core/constants.rbs

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,96 @@
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+
#
17
ARGF: RBS::Unnamed::ARGFClass
28

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+
#
314
ARGV: Array[String]
415

516
CROSS_COMPILING: true?
617

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+
#
730
DATA: File
831

32+
# <!-- rdoc-file=version.c -->
33+
# The copyright string for ruby
34+
#
935
RUBY_COPYRIGHT: String
1036

37+
# <!-- rdoc-file=version.c -->
38+
# The full ruby version string, like `ruby -v` prints
39+
#
1140
RUBY_DESCRIPTION: String
1241

42+
# <!-- rdoc-file=version.c -->
43+
# The engine or interpreter this ruby uses.
44+
#
1345
RUBY_ENGINE: String
1446

47+
# <!-- rdoc-file=version.c -->
48+
# The version of the engine or interpreter this ruby uses.
49+
#
1550
RUBY_ENGINE_VERSION: String
1651

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+
#
1756
RUBY_PATCHLEVEL: Integer
1857

58+
# <!-- rdoc-file=version.c -->
59+
# The platform for this ruby
60+
#
1961
RUBY_PLATFORM: String
2062

63+
# <!-- rdoc-file=version.c -->
64+
# The date this ruby was released
65+
#
2166
RUBY_RELEASE_DATE: String
2267

68+
# <!-- rdoc-file=version.c -->
69+
# The GIT commit hash for this ruby.
70+
#
2371
RUBY_REVISION: String
2472

73+
# <!-- rdoc-file=version.c -->
74+
# The running version of ruby
75+
#
2576
RUBY_VERSION: String
2677

78+
# <!-- rdoc-file=io.c -->
79+
# Holds the original stderr
80+
#
2781
STDERR: IO
2882

83+
# <!-- rdoc-file=io.c -->
84+
# Holds the original stdin
85+
#
2986
STDIN: IO
3087

88+
# <!-- rdoc-file=io.c -->
89+
# Holds the original stdout
90+
#
3191
STDOUT: IO
3292

93+
# <!-- rdoc-file=vm.c -->
94+
# The Binding of the top level scope
95+
#
3396
TOPLEVEL_BINDING: Binding

core/env.rbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
# <!-- rdoc-file=hash.c -->
2+
# ENV is a Hash-like accessor for environment variables.
3+
#
4+
# See ENV (the class) for more details.
5+
#
16
ENV: RBS::Unnamed::ENVClass

0 commit comments

Comments
 (0)