Sha256: a989ce64f20011fb11c65d260b0a1376cbcfd5a46dc084ee79d45f1bb04cfa6b
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
require 'find' module RoCommands module DSL module RoFile def dir?(path) test(?d, path) end def file?(path) test(?f, path) end def find(path) Find.find(path).to_a end def size(path) s = test(?s, path) s ||= 0 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ro_commands-0.0.3 | lib/ro_commands/dsl/ro_file.rb |
ro_commands-0.0.2 | lib/ro_commands/dsl/ro_file.rb |