free_mutant/lib/mutant/meta.rb
Markus Schirp 1ae2c04193 Add concat-promotion of resbody nodes
Idea related to #245.
2014-08-16 21:14:22 +00:00

31 lines
609 B
Ruby

module Mutant
# Namespace for mutant metadata
module Meta
require 'mutant/meta/example'
require 'mutant/meta/example/dsl'
# Mutation example
class Example
ALL = []
# Add example
#
# @return [undefined]
#
# @api private
#
def self.add(&block)
file = caller.first.split(':in', 2).first
ALL << DSL.run(file, block)
end
Pathname.glob(Pathname.new(__FILE__).parent.parent.parent.join('meta', '**/*.rb'))
.sort
.each(&method(:require))
ALL.freeze
end # Example
end # Meta
end # Mutant