Sha256: 592a33660be1f40ce9b575623c4eae92386f285da0109b73ff79c236f946146f

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

require 'rspec/core'
require 'forwardable'

module Generative

  DEFAULT_COUNT = '10_000'

  class << self
    extend Forwardable
    def_delegators :manager, :register_generator, :find_and_call
  end

  def self.generate(generator_name, *args)
    find_and_call(generator_name, *args)
  end

  def self.manager
    @manager ||= GeneratorManager.new(preregistered_generators)
  end

  def self.preregistered_generators
    {
        # nothing to see here yet
    }
  end

  def self.running?
    !!ENV['GENERATIVE_COUNT']
  end
end

require 'generative/dsl'
require 'generative/formatters'
require 'generative/ordering'
require 'generative/generator_manager'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
generative-0.2.5 lib/generative.rb