lib/folio/fileobject.rb in folio-0.1.0 vs lib/folio/fileobject.rb in folio-0.2.0

- old
+ new

@@ -1,6 +1,13 @@ +require 'enumerator' +require 'fileutils' +class Enumerator + alias_method :list, :to_a +end + + module Folio # = File Object # # Base class for all folio objects. @@ -147,10 +154,11 @@ def restat @stat = File.stat(path) end alias_method :stat!, :restat - def file? ; stat.file? ; end + #def file? ; stat.file? ; end + def document? ; stat.file? ; end def directory? ; stat.directory? ; end def blockdev? ; stat.blockdev? ; end def chardev? ; stat.chardev? ; end def socket? ; stat.socket? ; end def pipe? ; stat.pipe? ; end