Module: RTM::Axes::AssocsNamesOccs

Defined in:
rtm/lib/rtm/axes/assocs_names_occs.rb,
rtm/spec/rtm/axes/assocs_names_occs_spec.rb

Class Method Summary

Instance Method Summary

Class Method Details

+ (Object) extended(k)



7
8
9
# File 'rtm/lib/rtm/axes/assocs_names_occs.rb', line 7

def self.extended(k)
  k.extend ArrayProxy
end

Instance Method Details

- (Object) result Also known as: tmapi



11
12
13
# File 'rtm/lib/rtm/axes/assocs_names_occs.rb', line 11

def result
  self.map{|i| i.construct}
end

- (Object) reverse_reifier

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 'rtm/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

- (Object) scope

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 'rtm/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