Sha256: 2e82c0de7fc4ac2f58b9c8742a7cb5ed473e4d9796b212cec70f210c1a2d2b0b
Contents?: true
Size: 208 Bytes
Versions: 2
Compression:
Stored size: 208 Bytes
Contents
module FdtMiddlemanTools def find_resource_by_path (path = '*', sortField = 'title') sitemap.resources.select {|p| p.path.match(/#{path}/) }.sort{|x,y| x.data.sortField <=> y.data.sortField} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fdt_middleman_tools-1.0.3 | lib/fdt_middleman_tools.rb |
fdt_middleman_tools-1.0.2 | lib/fdt_middleman_tools.rb |