class Yome::Lib

Public Class Methods

binary?(path) click to toggle source
# File lib/yome/lib.rb, line 7
def self.binary?(path)
  s = File.read(path, 1024) or return false
  return s.index("\x00")
end
ignore?(path) click to toggle source
# File lib/yome/lib.rb, line 3
def self.ignore?(path)
  path == ".git" || path == "oboe.rb"
end