Implement sorted entries cache

sorted_entries cached
This commit is contained in:
Leeingnyo
2021-08-22 23:51:23 +09:00
parent 4a09aee177
commit bf81a4e48b
4 changed files with 107 additions and 0 deletions
+4
View File
@@ -61,6 +61,10 @@ class Library
titles + titles.flat_map &.deep_titles
end
def deep_entries
titles.flat_map &.deep_entries
end
def to_slim_json : String
JSON.build do |json|
json.object do