@@ -102,11 +102,15 @@ def extract_template class_resource, hash_str
102
102
end
103
103
104
104
##
105
+ # Check at the end of the search for direct inheritance on highest level.
105
106
# Returns the most specific class resource from +class_list+ based on
106
107
# +current_best+.
107
- # +resource+ is the original input of request_class_template.
108
108
#
109
- def find_highlevel_inheritance current_best , class_list , resource #check at the end of the search for direct inheritance on highest level
109
+ # +class_list+ is the list of clases that the +resource+ is assigned to.
110
+ # +resource+ is the original input of request_class_template resp. the
111
+ # resource on which to decide.
112
+ #
113
+ def find_highlevel_inheritance current_best , class_list , resource
110
114
class_list . each { |resource |
111
115
resource . find_direct_superclasses . each { |uri |
112
116
@classResources [ uri ] ||= Jekyll ::JekyllRdf ::Drops ::RdfResourceClass . new ( RDF ::URI ( uri ) )
@@ -142,8 +146,8 @@ def consistence_templates(classRes, alternatives, resource)
142
146
@consistence [ hash_str ] . push ( classRes )
143
147
@consistence [ hash_str ] . push ( [ ] )
144
148
end if @consistence [ hash_str ] . nil?
145
- @consistence [ hash_str ] [ 1 ] . push ( resource ) # using a hash ensures that a warning is printed only once for each combination of templates
146
- # and for each resource at most once
149
+ # using a hash ensures that a warning is printed only once for each combination of templates and for each resource at most once
150
+ @consistence [ hash_str ] [ 1 ] . push ( resource )
147
151
@consistence [ hash_str ] [ 0 ]
148
152
end
149
153
0 commit comments