class Lutaml::Uml::Enum
Attributes
attributes[R]
definition[R]
keyword[R]
members[R]
modifier[R]
values[R]
Public Class Methods
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/lutaml/uml/enum.rb, line 21 def initialize(attributes = {}) super @keyword = "enumeration" end
Public Instance Methods
attributes=(value)
click to toggle source
TODO: delete?
# File lib/lutaml/uml/enum.rb, line 27 def attributes=(value) @attributes = value.to_a.map do |attr| TopElementAttribute.new(attr) end end
methods()
click to toggle source
TODO: reserved name, change
# File lib/lutaml/uml/enum.rb, line 40 def methods [] end
values=(value)
click to toggle source
# File lib/lutaml/uml/enum.rb, line 33 def values=(value) @values = value.to_a.map do |attr| Value.new(attr) end end