Module: Enumerable

Defined in:
lib/xcode-yamlizer.rb

Instance Method Summary collapse

Instance Method Details

#include_filename?(filename) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
35
36
37
38
39
# File 'lib/xcode-yamlizer.rb', line 32

def include_filename?(filename)
  self.each do |elem|
    if elem.kind_of? Regexp and elem.match(filename)
      return true
    end
  end
  return self.include? File.extname(filename)
end