Module: ActiveReporter::Report::Definition
- Extended by:
- ActiveSupport::Concern
- Included in:
- ActiveReporter::Report
- Defined in:
- lib/active_reporter/report/definition.rb
Constant Summary collapse
- METRICS =
i[aggregator calculator dimension tracker evaluator].collect do |type| metrics = Dir.glob(File.join(__dir__, "..", type.to_s, "*.rb")).collect { |file| File.basename(file, ".rb") }.without(*%w[base bin]).collect(&:to_sym).sort.freeze [type, const_set(type.to_s.upcase, metrics)] end.to_h.sort.freeze