Sha256: 5e440414f70985acadb8cac0728283b39b38f7fbc9cbc2dbc037bf211c320607

Contents?: true

Size: 609 Bytes

Versions: 16

Compression:

Stored size: 609 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mutant-0.8.0 lib/mutant/meta.rb
mutant-0.7.9 lib/mutant/meta.rb
mutant-0.7.8 lib/mutant/meta.rb
mutant-0.7.7 lib/mutant/meta.rb
mutant-0.7.6 lib/mutant/meta.rb
mutant-0.7.5 lib/mutant/meta.rb
mutant-0.7.4 lib/mutant/meta.rb
mutant-0.7.3 lib/mutant/meta.rb
mutant-0.7.2 lib/mutant/meta.rb
mutant-0.7.1 lib/mutant/meta.rb
mutant-0.6.7 lib/mutant/meta.rb
mutant-0.6.6 lib/mutant/meta.rb
mutant-0.6.5 lib/mutant/meta.rb
mutant-0.6.4 lib/mutant/meta.rb
mutant-0.6.3 lib/mutant/meta.rb
mutant-0.6.2 lib/mutant/meta.rb