Sha256: f54bcd8c4c104982de68bff7f8ef2324663eeb8089bc219c252e383891561934

Contents?: true

Size: 554 Bytes

Versions: 6

Compression:

Stored size: 554 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)
        ALL << DSL.run(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

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.5.23 lib/mutant/meta.rb
mutant-0.5.22 lib/mutant/meta.rb
mutant-0.5.21 lib/mutant/meta.rb
mutant-0.5.20 lib/mutant/meta.rb
mutant-0.5.19 lib/mutant/meta.rb
mutant-0.5.18 lib/mutant/meta.rb