Class: RepoParser::Filterer

Inherits:
Object
  • Object
show all
Defined in:
lib/repo_parser.rb

Overview

Filterer filters non-matching repositories

Class Method Summary collapse

Class Method Details

.allow?(repo) ⇒ Boolean

Returns:

  • (Boolean)


84
85
86
87
# File 'lib/repo_parser.rb', line 84

def self.allow?(repo)
  repo.name =~ /ruby/ &&
    !repo.fork
end

.call(repos) ⇒ Object



78
79
80
81
82
# File 'lib/repo_parser.rb', line 78

def self.call(repos)
  repos.select do |repo|
    allow?(repo)
  end
end