summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-12 15:45:44 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-12 15:45:44 +0000
commit5b78e48c318b342c46943a4723f3d556ead7795b (patch)
tree84d625b38444456d71185335cb6c7d162189b456 /lib
parent2689fd677c298d96c9c0dd0e5d035bc2cd7247a5 (diff)
* lib/prime.rb: Fix with_object with no block given
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/prime.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prime.rb b/lib/prime.rb
index 757538db79..1eed28d914 100644
--- a/lib/prime.rb
+++ b/lib/prime.rb
@@ -281,7 +281,7 @@ class Prime
# see +Enumerator+#with_object.
def with_object(obj)
- return enum_for(:with_object) unless block_given?
+ return enum_for(:with_object, obj) unless block_given?
each do |prime|
yield prime, obj
end