lib/lookbook/page.rb in lookbook-1.0.0.beta.4 vs lib/lookbook/page.rb in lookbook-1.0.0.beta.5
- old
+ new
@@ -152,9 +152,13 @@
def exists?(path)
!!find(path)
end
+ def any?
+ all.any?
+ end
+
def all
pages, sections =
Array(page_paths).flat_map do |dir|
Dir["#{dir}/**/*.html.*", "#{dir}/**/*.md.*"].sort.map do |path|
create(path, dir)