Sha256: c56295ae3c5f8f1a7f73cce474d29a15d06f56e1e41b6bd3417f08d327ac8e56
Contents?: true
Size: 430 Bytes
Versions: 11
Compression:
Stored size: 430 Bytes
Contents
require_relative './spec_file' module Snapdragon class SpecDirectory def initialize(path) @path = path end def spec_files spec_file_objs = [] Dir.glob("#{@path.path}/**/*").each do |raw_path| if raw_path =~ /^[\w\/\-\d]+[s|S]pec\.js$/ spec_file_objs << Snapdragon::SpecFile.new(Snapdragon::Path.new(raw_path)) end end return spec_file_objs end end end
Version data entries
11 entries across 11 versions & 1 rubygems