Sha256: 2b23dc0a32b0e52228bb3fafed9fcddcd82be5f9e79d8d644d60919eae759ff4
Contents?: true
Size: 736 Bytes
Versions: 28
Compression:
Stored size: 736 Bytes
Contents
# frozen_string_literal: true module Lutaml module Uml class Value include HasAttributes include HasMembers attr_accessor :definition, :name, :id, :type # rubocop:disable Rails/ActiveRecordAliases def initialize(attributes = {}) 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
28 entries across 28 versions & 1 rubygems