Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove $LOADED_FEATURES from examples in lib/English.rb #620

Closed
wants to merge 1 commit into from
Closed

Remove $LOADED_FEATURES from examples in lib/English.rb #620

wants to merge 1 commit into from

Conversation

leafac
Copy link

@leafac leafac commented May 30, 2014

When the docs for lib/English.rb were first written 1,
$LOADED_FEATURES was an alias for $" defined in lib/English.rb.

Currently, however, $LOADED_FEATURES is defined in load.c along with
$" itself 2.

Update the documentation present in lib/English.rb to reflect that and
don't misguide the reader.

@zzak
Copy link
Member

zzak commented May 31, 2014

@leafac Thanks! Could you update doc/globals.rdoc to list $LOADED_FEATURES then?

I will merge once its ready.

When the docs for `lib/English.rb` were first written [1],
`$LOADED_FEATURES` was an alias for `$"` defined in `lib/English.rb`.

Currently, however, `$LOADED_FEATURES` is defined in `load.c` along with
`$"` itself [2].

Update the documentation present in `lib/English.rb` to reflect that and
don't misguide the reader.

Also, add `$LOADED_FEATURES` to `doc/globals.rdoc`, which lists globals
defined by Ruby internals.

[1]: f8c7b41#diff-2c060ee58c8d1169e19a88d41b3f0259L3
[2]: https://github.com/ruby/ruby/blob/5cc1d57c3957ecabe02c5ad79dd75c523457187f/load.c#L1179
@leafac
Copy link
Author

leafac commented May 31, 2014

There you go @zzak, thanks!

@zzak zzak closed this in bcd2515 May 31, 2014
@zzak
Copy link
Member

zzak commented May 31, 2014

@leafac Thanks! <3

@leafac leafac deleted the update-english-doc branch June 1, 2014 01:39
mmasaki pushed a commit to mmasaki/ruby that referenced this pull request Jun 22, 2014
…H-620]

  Patch submitted by @leafac in ruby#620
* doc/globals.rdoc: Added $LOADED_FEATURES to list


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
markjlorenz pushed a commit to covermymeds/ruby that referenced this pull request Jun 30, 2014
…H-620]

  Patch submitted by @leafac in ruby#620
* doc/globals.rdoc: Added $LOADED_FEATURES to list

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
@pvdb
Copy link
Contributor

pvdb commented Oct 20, 2015

👍 -- BTW: the "docu bug" was introduced as a side-effect of 6dcbfbc

hsbt pushed a commit to ruby/English that referenced this pull request Feb 13, 2020
  Patch submitted by @leafac in ruby/ruby#620
* doc/globals.rdoc: Added $LOADED_FEATURES to list


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants