Module: Xmi::RootAttributes
- Included in:
- Root
- Defined in:
- lib/xmi/root.rb
Class Method Summary collapse
-
.included(klass) ⇒ Object
rubocop:disable Metrics/AbcSize,Metrics/MethodLength.
Class Method Details
.included(klass) ⇒ Object
rubocop:disable Metrics/AbcSize,Metrics/MethodLength
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/xmi/root.rb', line 8 def self.included(klass) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength klass.class_eval do attribute :id, :string attribute :label, :string attribute :uuid, :string attribute :href, :string attribute :idref, :string attribute :type, :string attribute :documentation, Documentation attribute :bibliography, TheCustomProfile::Bibliography, collection: true attribute :basic_doc, TheCustomProfile::BasicDoc, collection: true attribute :enumeration, TheCustomProfile::Enumeration, collection: true attribute :ocl, TheCustomProfile::Ocl, collection: true attribute :invariant, TheCustomProfile::Invariant, collection: true attribute :publication_date, TheCustomProfile::PublicationDate, collection: true attribute :edition, TheCustomProfile::Edition, collection: true attribute :number, TheCustomProfile::Number, collection: true attribute :year_version, TheCustomProfile::YearVersion, collection: true attribute :informative, TheCustomProfile::Informative, collection: true attribute :persistence, TheCustomProfile::Persistence, collection: true attribute :abstract, TheCustomProfile::Abstract, collection: true end end |