Sha256: c07904c534cd1f9e6022079a3092cb63feaebd14c3ef3efe8f8c639a6b416cc8

Contents?: true

Size: 778 Bytes

Versions: 21

Compression:

Stored size: 778 Bytes

Contents

module Expressir
  module Model
    class SubtypeConstraint < ModelElement
      include Identifier

      model_attr_accessor :applies_to
      model_attr_accessor :abstract
      model_attr_accessor :total_over
      model_attr_accessor :supertype_expression

      def initialize(options = {})
        @id = options[:id]
        @remarks = options.fetch(:remarks, [])
        @remark_items = options.fetch(:remark_items, [])
        @source = options[:source]

        @applies_to = options[:applies_to]
        @abstract = options[:abstract]
        @total_over = options.fetch(:total_over, [])
        @supertype_expression = options[:supertype_expression]

        super
      end

      def children
        [
          *remark_items
        ]
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
expressir-0.2.24-arm64-darwin lib/expressir/model/subtype_constraint.rb