jruby

https://github.com/jruby/jruby

Ruby

JRuby, an implementation of Ruby on the JVM

WeakRef#initialize

Creates a weak reference to +orig+

Raises an ArgumentError if the given +orig+ is immutable, such as Symbol,
Fixnum, or Float.

Source | Google | Stack overflow

Edit

git clone [email protected]:jruby/jruby.git

cd jruby

open lib/ruby/stdlib/weakref.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-WeakRef-initialize-for-pr


# Commit to git

git add lib/ruby/stdlib/weakref.rbgit commit -m "better docs for WeakRef#initialize"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-WeakRef-initialize-for-pr

hub pull-request


# Celebrate!