Skip to content

Commit d290a9d

Browse files
authored
Merge pull request #283 from AKSW/feature/addComment
Add some comments
2 parents 5800582 + f621236 commit d290a9d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/jekyll/helper/rdf_class_extraction.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,15 @@ def extract_template class_resource, hash_str
102102
end
103103

104104
##
105+
# Check at the end of the search for direct inheritance on highest level.
105106
# Returns the most specific class resource from +class_list+ based on
106107
# +current_best+.
107-
# +resource+ is the original input of request_class_template.
108108
#
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
110114
class_list.each{|resource|
111115
resource.find_direct_superclasses.each{|uri|
112116
@classResources[uri] ||= Jekyll::JekyllRdf::Drops::RdfResourceClass.new(RDF::URI(uri))
@@ -142,8 +146,8 @@ def consistence_templates(classRes, alternatives, resource)
142146
@consistence[hash_str].push(classRes)
143147
@consistence[hash_str].push([])
144148
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)
147151
@consistence[hash_str][0]
148152
end
149153

0 commit comments

Comments
 (0)