Sha256: 7259f81030bbf7eef86b8c46cf8566ec6a5bbb69ce55c7586732c2f24723f1dc

Contents?: true

Size: 708 Bytes

Versions: 5

Compression:

Stored size: 708 Bytes

Contents

# frozen_string_literal: true

require_relative "declarations/schema_drop"

module Expressir
  module Liquid
    class RepositoryDrop < ::Expressir::Liquid::ModelElementDrop
      def initialize(model, selected_schemas: nil, options: {}) # rubocop:disable Lint/MissingSuper
        @model = model
        @selected_schemas = selected_schemas
        @options = options
        super(model)
      end

      def schemas
        return [] unless @model.schemas

        @model.schemas.map do |item|
          ::Expressir::Liquid::Declarations::SchemaDrop.new(
            item,
            selected_schemas: @selected_schemas,
            options: @options,
          )
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
expressir-2.1.10 lib/expressir/liquid/repository_drop.rb
expressir-2.1.9 lib/expressir/liquid/repository_drop.rb
expressir-2.1.8 lib/expressir/liquid/repository_drop.rb
expressir-2.1.7 lib/expressir/liquid/repository_drop.rb
expressir-2.1.6 lib/expressir/liquid/repository_drop.rb