lib/csl/style/citation.rb in csl-1.1.0 vs lib/csl/style/citation.rb in csl-1.2.0
- old
+ new
@@ -8,9 +8,14 @@
attr_struct(*Schema.attr(:citation, :names, :name))
attr_children :sort, :layout
alias sort? has_sort?
+
+ def sort_keys
+ return [] unless sort?
+ children[:sort].sort_keys
+ end
end
end
end