Sha256: 7b4aa62cdd9325b1da817149b69e1f2dfe6492ff0f49e301162c54b116d1b0d6
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
# frozen_string_literal: true module Mutant # Namespace for mutant metadata module Meta require 'mutant/meta/example' require 'mutant/meta/example/dsl' require 'mutant/meta/example/verification' # Mutation example class Example # rubocop:disable MutableConstant ALL = [] # Add example # # @return [undefined] # # rubocop:disable Performance/Caller def self.add(type, &block) file = caller.first.split(':in', 2).first ALL << DSL.call(file, type, block) end Pathname.glob(Pathname.new(__dir__).parent.parent.join('meta', '*.rb')) .sort .each(&method(:require)) ALL.freeze # Remove mutation method only present for DSL executions from meta/**/*.rb class << self undef_method :add end end # Example end # Meta end # Mutant
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.8.20 | lib/mutant/meta.rb |
mutant-0.8.19 | lib/mutant/meta.rb |
mutant-0.8.18 | lib/mutant/meta.rb |
mutant-0.8.17 | lib/mutant/meta.rb |