Sha256: 187e7c96ae2c821f463644872c564ce954901aef8806209412e075135a005a38
Contents?: true
Size: 209 Bytes
Versions: 3
Compression:
Stored size: 209 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.title} end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fdt_middleman_tools-1.0.1 | lib/fdt_middleman_tools.rb |
fdt_middleman_tools-0.7.1 | lib/fdt_middleman_tools.rb |
fdt_middleman_tools-0.0.8 | lib/fdt_middleman_tools.rb |