Sha256: c790ebb96a9c547137180ca3216679157025d1f1adaf9934d764673d5ad707ea

Contents?: true

Size: 730 Bytes

Versions: 11

Compression:

Stored size: 730 Bytes

Contents

# frozen_string_literal: true

module Expressir
  module Liquid
    module Declarations
      class AttributeDrop < ::Expressir::Liquid::DeclarationDrop
        include ::Expressir::Liquid::IdentifierDrop

        def initialize(model)
          @model = model
          initialize_identifier(@model)
          super
        end

        def kind
          @model.kind
        end

        def supertype_attribute
          drop_klass_by_model(@model.supertype_attribute)
        end

        def optional
          @model.optional
        end

        def type
          drop_klass_by_model(@model.type)
        end

        def expression
          drop_klass_by_model(@model.expression)
        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/attribute_drop.rb
expressir-2.1.9 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.8 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.7 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.6 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.5 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.4 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.3 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.2 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.1 lib/expressir/liquid/declarations/attribute_drop.rb
expressir-2.1.0 lib/expressir/liquid/declarations/attribute_drop.rb