Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better error text

  • Loading branch information...
commit 0e452e6a02ddd305f582166a9dceb6665726bd26 1 parent ebaa26b
@nevir nevir authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ruvii/core_ext/hash.rb
View
2  lib/ruvii/core_ext/hash.rb
@@ -19,7 +19,7 @@ module ClassMethods
#
# It also ensures that we always set up the correct key, and other potentially evil things.
def default(&block)
- raise "Hash.with_default expects a block" unless block
+ raise "Hash.default expects a block" unless block
Hash.new { |h,k| h[k] = block.call }
end
Please sign in to comment.
Something went wrong with that request. Please try again.