Sha256: fe02c059e5b3c501e51eeb6811dac6a9386e81c588df945a89f8f5c086772dd4
Contents?: true
Size: 625 Bytes
Versions: 4
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true require "lutaml/uml/has_members" require "lutaml/uml/classifier" require "lutaml/uml/association" require "lutaml/uml/top_element_attribute" module Lutaml module Uml class Enum < Classifier include HasMembers attr_reader :attributes, :members, :modifier def attributes=(value) @attributes = value.to_a.map do |attr| TopElementAttribute.new(attr) end end # TODO: reserved name, change def methods [] end def keyword "enumeration" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lutaml-uml-0.2.3 | lib/lutaml/uml/enum.rb |
lutaml-uml-0.2.2 | lib/lutaml/uml/enum.rb |
lutaml-uml-0.2.1 | lib/lutaml/uml/enum.rb |
lutaml-uml-0.2.0 | lib/lutaml/uml/enum.rb |