lib/guard.rb
# Returns a list of guard Gem names installed locally.
#
# @return [Array<String>] a list of guard gem names
#
Returns a list of guard Gem names installed locally.
Returns a list of guard Gem names installed locally .
def guard_gem_names
      if Gem::Version.create(Gem::VERSION) >= Gem::Version.create('1.8.0')
        Gem::Specification.find_all.select { |x| x.name =~ /^guard-/ }
      else
        Gem.source_index.find_name(/^guard-/)
      end.map { |x| x.name.sub /^guard-/, '' }
    end
def guard_gem_names if Gem :: Version . create ( Gem :: VERSION ) >= Gem :: Version . create ( '1.8.0' ) Gem :: Specification . find_all . select { | x | x . name =~ / ^guard- / } else Gem . source_index . find_name ( / ^guard- / ) end . map { | x | x . name . sub / ^guard- / , '' } end
Returns a list of guard Gem names installed locally.
Returns a list of guard Gem names installed locally .
a list of guard gem names
a list of guard gem names
Array<String>