# File lib/standard/facets/yaml/file.rb, line 16 def self.file?(file) File.open(file) do |f| until f.eof? line = f.gets break true if line =~ /^---/ break false unless line =~ /^(\s*#.*?|\s*)$/ end end end