Permalink
Browse files

note about name

  • Loading branch information...
1 parent 00ddfb4 commit daae6bc024c17e632402758c74f9873d300ea2aa @rkh committed Jun 14, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/gem_tools.rb
View
@@ -64,6 +64,7 @@ module ClassMethods
##
# Like Gem::Specification.new, but will `instance_eval` block **if it takes no argument**.
+ # Gem name is automatically set (file name without .gemspec) if missing.
# Will extend created instance with GemTools::InstanceMethods.
def new(name = nil, version = nil, &block)
file = caller.first[/^[^:]+/]

0 comments on commit daae6bc

Please sign in to comment.