summaryrefslogtreecommitdiffstats
path: root/lib/set.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-30 06:20:09 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-30 06:20:09 +0000
commitbe227c54827cdc75d1ee990dcca8b033e7e46aef (patch)
tree338b88745605af71d31e05580d278c9a186cae9f /lib/set.rb
parentd608e337f4bbbd71ea861f2ab26a66986b0db943 (diff)
downloadruby-be227c54827cdc75d1ee990dcca8b033e7e46aef.tar.gz
ruby-be227c54827cdc75d1ee990dcca8b033e7e46aef.tar.xz
ruby-be227c54827cdc75d1ee990dcca8b033e7e46aef.zip
* eval.c (rb_eval): pre-evaluate argument for unambiguous
evaluation order. [ruby-dev:26383] * lib/delegate.rb (Delegator::method_missing): forward unknown method to the destination. suggested by <christophe.poucet@gmail.com>. [ruby-talk:146776] * process.c (detach_process_watcher): terminate process watcher thread right after rb_waitpid() succeed. [ruby-talk:146430] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/set.rb')
-rw-r--r--lib/set.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/set.rb b/lib/set.rb
index 586a5d9f4..0ad47c842 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -519,6 +519,7 @@ end
module Enumerable
# Makes a set from the enumerable object with given arguments.
+ # Needs to +require "set"+ to use this method.
def to_set(klass = Set, *args, &block)
klass.new(self, *args, &block)
end