Sha256: 5c79283efdc16c1003341c23f9f9cb64d13a22624368263b8ce958a2395f1d16

Contents?: true

Size: 238 Bytes

Versions: 2

Compression:

Stored size: 238 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.instance_eval(sortField) <=> y.data.instance_eval(sortField)}
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fdt_middleman_tools-1.0.5 lib/fdt_middleman_tools.rb
fdt_middleman_tools-1.0.4 lib/fdt_middleman_tools.rb