class Repokeeper::Analyzers::Analyzer
Base class for sequential commits analyzers
Public Class Methods
all()
click to toggle source
# File lib/repokeeper/analyzers/analyzer.rb, line 6 def self.all @all.clone end
inherited(subclass)
click to toggle source
# File lib/repokeeper/analyzers/analyzer.rb, line 10 def self.inherited(subclass) @all << subclass end
new(config)
click to toggle source
# File lib/repokeeper/analyzers/analyzer.rb, line 14 def initialize(config) @config = config || {} end
Public Instance Methods
enabled?()
click to toggle source
# File lib/repokeeper/analyzers/analyzer.rb, line 22 def enabled? @config.fetch('enabled') { true } end
name()
click to toggle source
# File lib/repokeeper/analyzers/analyzer.rb, line 18 def name self.class.name.split('::').last end