Method: Snapdragon::Path#spec_files

Defined in:
lib/snapdragon/path.rb

#spec_filesObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/snapdragon/path.rb', line 18

def spec_files
  if exists?
    if is_a_directory?
      spec_dir = Snapdragon::SpecDirectory.new(self)
      return spec_dir.spec_files
    else
      return [Snapdragon::SpecFile.new(self)]
    end
  end
  return []
end