Sha256: e39a66b85c4b6114c77e9fb2220c3a016bfd00790bb4b2d9851bdca44570bc88
Contents?: true
Size: 397 Bytes
Versions: 1
Compression:
Stored size: 397 Bytes
Contents
module SeedGimmick module Finder extend ActiveSupport::Concern module ClassMethods def find(options = nil) options ||= Options.new seed_files(options).map {|file| SeedFile.new(options.seed_dir, file) } end private def seed_files(options) Pathname.glob(options.seed_dir.join("**", "*")).select(&:file?) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seed_gimmick-0.0.1 | lib/seed_gimmick/finder.rb |