Sha256: e47b55b410ba6c99d1e90a87e12df1ea68aff6be15ba83fbed9390cb1890e916

Contents?: true

Size: 999 Bytes

Versions: 30

Compression:

Stored size: 999 Bytes

Contents

# frozen_string_literal: true

module Lutaml
  module Uml
    class TopElementAttribute
      include HasAttributes
      include HasMembers

      attr_accessor :name,
                    :visibility,
                    :type,
                    :id,
                    :xmi_id,
                    :definition,
                    :contain,
                    :static,
                    :cardinality,
                    :keyword,
                    :is_derived

      # rubocop:disable Rails/ActiveRecordAliases
      def initialize(attributes = {})
        @visibility = "public"
        update_attributes(attributes)
      end
      # rubocop:enable Rails/ActiveRecordAliases

      def definition=(value)
        @definition = value
                        .to_s
                        .gsub(/\\}/, '}')
                        .gsub(/\\{/, '{')
                        .split("\n")
                        .map(&:strip)
                        .join("\n")
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
lutaml-0.9.27 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.26 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.25 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.24 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.23 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.22 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.21 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.20 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.19 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.18 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.17 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.16 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.15 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.14 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.13 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.12 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.11 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.10 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.9 lib/lutaml/uml/top_element_attribute.rb
lutaml-0.9.8 lib/lutaml/uml/top_element_attribute.rb