Sha256: 92508e14bf158bb632e98b35a1ca6d0094174f97de96c9f4af7547aba516004c
Contents?: true
Size: 791 Bytes
Versions: 14
Compression:
Stored size: 791 Bytes
Contents
# frozen_string_literal: true module Expressir module Liquid module Declarations class SubtypeConstraintDrop < ::Expressir::Liquid::DeclarationDrop include ::Expressir::Liquid::IdentifierDrop def initialize(model) @model = model initialize_identifier(@model) super end def applies_to drop_klass_by_model(@model.applies_to) end def abstract @model.abstract end def total_over return [] unless @model.total_over @model.total_over.map do |item| drop_klass_by_model(item) end end def supertype_expression drop_klass_by_model(@model.supertype_expression) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems