Module: RTM::Sugar::TopicMap::Themes

Defined in:
lib/rtm/sugar/topic_map/themes.rb

Instance Method Summary collapse

Instance Method Details

#association_themesObject

Returns all topics in the topic map used in the scope property of Associations.

The result may be empty.

:call-seq:

association_themes -> Array of Topics


17
18
19
# File 'lib/rtm/sugar/topic_map/themes.rb', line 17

def association_themes
  scoped_index.get_association_themes.to_a
end

#name_themesObject

Returns all topics in the topic map used in the scope property of Names.

:call-seq:

name_themes -> Array of Topics


27
28
29
# File 'lib/rtm/sugar/topic_map/themes.rb', line 27

def name_themes
  scoped_index.get_name_themes.to_a
end

#occurrence_themesObject

Returns all topics in the topic map used in the scope property of Occurrences.

:call-seq:

occurrence_themes -> Array of Topics


37
38
39
# File 'lib/rtm/sugar/topic_map/themes.rb', line 37

def occurrence_themes
  scoped_index.get_occurrence_themes.to_a
end

#variant_themesObject

Returns all topics in the topic map used in the scope property of Variants.

:call-seq:

variant_themes -> Array of Topics


47
48
49
# File 'lib/rtm/sugar/topic_map/themes.rb', line 47

def variant_themes
  scoped_index.get_variant_themes.to_a
end