Sha256: 639c2d9f01d94c0e37d9eca318adc61d37d495ef7b6a6dc0c12b7c9d8b2bef88

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

module JsTestDriver
  class ConfigFactory

    attr_reader :runtime_config

    def initialize(runtime_config)
      @runtime_config = runtime_config
    end

    def new(opts = {})
      JsTestDriver::Config.new(runtime_config, opts)
    end

    def parse(string)
      config = new
      config.instance_eval(string)
      return config
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
js-test-driver-rails-0.5.0.pre5 lib/js_test_driver/config_factory.rb
js-test-driver-rails-0.5.0.pre4 lib/js_test_driver/config_factory.rb
js-test-driver-rails-0.5.0.pre3 lib/js_test_driver/config_factory.rb
js-test-driver-rails-0.5.0.pre2 lib/js_test_driver/config_factory.rb
js-test-driver-rails-0.5.0.pre1 lib/js_test_driver/config_factory.rb