lib/pry-doc/pry_ext/method_info.rb
##
# Try to guess what the gem name will be based on the name of the module.
#
# @param [String] name The name of the module
# @return [Enumerator] the enumerator which enumerates on possible names
#   we try to guess
Try to guess what the gem name will be based on the name of the module.
Try to guess what the gem name will be based on the name of the module .
def guess_gem_name(name)
        scanned_name = name.scan(/[A-z]+/).map(&:downcase)
        Enumerator.new do |y|
          y << name.downcase
          y << scanned_name.join('_')
          y << scanned_name.join('_').sub('_', '-')
          y << scanned_name.join('-')
          y << name
        end
      end
def guess_gem_name ( name ) scanned_name = name . scan ( / [A-z]+ / ) . map ( & :downcase ) Enumerator . new do | y | y << name . downcase y << scanned_name . join ( '_' ) y << scanned_name . join ( '_' ) . sub ( '_' , '-' ) y << scanned_name . join ( '-' ) y << name end end
Try to guess what the gem name will be based on the name of the module.
Try to guess what the gem name will be based on the name of the module .
the enumerator which enumerates on possible names we try to guess
the enumerator which enumerates on possible names we try to guess
Enumerator
name
name The name of the module
name The name of the module