summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 03:09:34 (GMT)
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-29 03:09:34 (GMT)
commit926301969f7970b5a59a065dabb234cddc590e6c (patch)
tree1962225c402f5ed2c75ed14b1eece1dd665fd0b4 /version.c
parent54bbc098fa1e05570e960750bf2c86d45017e575 (diff)
* math.c: Attach documentation for Math.
* object.c: Document NIL, TRUE, FALSE. * io.c: Improve grammar in ARGF comment. Document STDIN/OUT/ERR. Document ARGF global constant. * lib/rake: Hide deprecated toplevel constants from RDoc (import from rake trunk). * lib/thwait.rb: Document ThWait. * lib/mathn.rb: Hide Math redefinition from RDoc * lib/sync.rb: Add a basic comment for Sync_m, Synchronizer_m, Sync, Synchronizer. * parse.y: Document SCRIPT_LINES__. * hash.c: Document ENV class and global constant. * vm.c: Document TOPLEVEL_BINDING. * version.c: Document RUBY_* constants. * ruby.c: Document DATA and ARGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.c')
-rw-r--r--version.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/version.c b/version.c
index 9cf37af..59d4e5e 100644
--- a/version.c
+++ b/version.c
@@ -98,13 +98,38 @@ const char ruby_initial_load_paths[] =
void
Init_version(void)
{
+ /*
+ * The running version of ruby
+ */
rb_define_global_const("RUBY_VERSION", MKSTR(version));
+ /*
+ * The date this ruby was released
+ */
rb_define_global_const("RUBY_RELEASE_DATE", MKSTR(release_date));
+ /*
+ * The platform for this ruby
+ */
rb_define_global_const("RUBY_PLATFORM", MKSTR(platform));
+ /*
+ * The patchlevel for this ruby. If this is a development build of ruby
+ * the patchlevel will be -1
+ */
rb_define_global_const("RUBY_PATCHLEVEL", INT2FIX(RUBY_PATCHLEVEL));
+ /*
+ * The SVN revision for this ruby.
+ */
rb_define_global_const("RUBY_REVISION", INT2FIX(RUBY_REVISION));
+ /*
+ * The full ruby version string, like <tt>ruby -v</tt> prints'
+ */
rb_define_global_const("RUBY_DESCRIPTION", MKSTR(description));
+ /*
+ * The copyright string for ruby
+ */
rb_define_global_const("RUBY_COPYRIGHT", MKSTR(copyright));
+ /*
+ * The engine or interpreter this ruby uses.
+ */
rb_define_global_const("RUBY_ENGINE", ruby_engine_name = MKSTR(engine));
}