Sha256: 166c6aadac41645ecf32adfadcf981e4e636b635f3fde8631df7ff43c644c142

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

module Expressir
  module Model
    # Multi-schema global scope
    class Repository < ModelElement
      model_attr_accessor :schemas, "Array<Declarations::Schema>"

      # @param [Hash] options
      # @option options [Array<Declarations::Schema>] :schemas
      def initialize(options = {})
        @schemas = options[:schemas] || []

        super
      end

      # @return [Array<Declaration>]
      def children
        [
          *schemas,
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
expressir-2.1.2 lib/expressir/model/repository.rb
expressir-2.1.1 lib/expressir/model/repository.rb