Module: RTM::Axes::AssocsNamesOccs
- Defined in:
- lib/rtm/axes/assocs_names_occs.rb
Class Method Summary collapse
Instance Method Summary collapse
- #result ⇒ Object (also: #tmapi)
-
#reverse_reifier ⇒ Object
Returns the reifing Topics of these Characteristics and Associations only if such Topics exists.
-
#scope ⇒ Object
Returns the scope of these Characteristics and Associations.
Class Method Details
.extended(k) ⇒ Object
7 8 9 |
# File 'lib/rtm/axes/assocs_names_occs.rb', line 7 def self.extended(k) k.extend ArrayProxy end |
Instance Method Details
#result ⇒ Object Also known as: tmapi
11 12 13 |
# File 'lib/rtm/axes/assocs_names_occs.rb', line 11 def result self.map{|i| i.construct} end |
#reverse_reifier ⇒ Object
Returns the reifing Topics of these Characteristics and Associations only if such Topics exists.
The result may be empty.
:call-seq:
reverse_reified -> Array of Topics
27 28 29 30 31 32 33 34 |
# File 'lib/rtm/axes/assocs_names_occs.rb', line 27 def reverse_reifier _res = self.inject([]){|all,containee| all << containee.send(:reverse_reifier)}.flatten _res = _res.select{|i| i} ### FLAG UNIQUE ### _res = _res.map{|i| i.construct}.uniq.map{|i| i.axes} ### ### _res.extend(Topics) end |
#scope ⇒ Object
Returns the scope of these Characteristics and Associations.
The result may be empty.
:call-seq:
scope -> Array of Topics
46 47 48 49 50 51 52 53 |
# File 'lib/rtm/axes/assocs_names_occs.rb', line 46 def scope _res = self.inject([]){|all,containee| all << containee.send(:scope)}.flatten ### FLAG UNIQUE ### _res = _res.map{|i| i.construct}.uniq.map{|i| i.axes} ### ### _res = _res.extend(Topics) _res end |