class File
Public Class Methods
binread(fname)
click to toggle source
# File lib/rbt/yaml/individual_cookbooks/setup.rb, line 27 def File.binread(fname) open(fname, 'rb') {|f| return f.read } end
dir?(path)
click to toggle source
for corrupted Windows' stat(2)
# File lib/rbt/yaml/individual_cookbooks/setup.rb, line 34 def File.dir?(path) File.directory?((path[-1,1] == '/') ? path : path + '/') end