Sha256: 69822f077c80feb5d1b931be073a6d6e9f59ad0663028c0a82611e0fe32c4685

Contents?: true

Size: 587 Bytes

Versions: 3

Compression:

Stored size: 587 Bytes

Contents

module CQL

# A repository is a group of models. See the corresponding Cucumber documentation for details.

  class Repository

    include Queriable


    def initialize(repository_root)
      case
        when repository_root.is_a?(String)
          root = CukeModeler::Directory.new(repository_root)
        when repository_root.class.to_s =~ /CukeModeler/
          root = repository_root
        else
          raise(ArgumentError, "Don't know how to make a repository from a #{repository_root.class}")
      end

      @query_root = root
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cql-1.5.0 lib/cql/repository.rb
cql-1.4.2 lib/cql/repository.rb
cql-1.4.1 lib/cql/repository.rb