Sha256: 517b409f21e75e76159c7a3ac207ef63fd097326eb8ddf62a45cf1c6e66bb6be

Contents?: true

Size: 525 Bytes

Versions: 11

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

module Expressir
  module Liquid
    module Declarations
      class SchemaVersionDrop < ::Expressir::Liquid::ModelElementDrop
        def initialize(model)
          @model = model
          super
        end

        def value
          @model.value
        end

        def items
          return [] unless @model.items

          @model.items.map do |item|
            ::Expressir::Liquid::Declarations::SchemaVersionItemDrop.new(item)
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
expressir-2.1.10 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.9 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.8 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.7 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.6 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.5 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.4 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.3 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.2 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.1 lib/expressir/liquid/declarations/schema_version_drop.rb
expressir-2.1.0 lib/expressir/liquid/declarations/schema_version_drop.rb