Sha256: 755fb931d966ed0b1df1558f8a6fe41a761e27d162616a92a2b751f44394a85e

Contents?: true

Size: 1017 Bytes

Versions: 1

Compression:

Stored size: 1017 Bytes

Contents

require 'fileutils'
require 'folio/errors'
require 'folio/shell'
require 'folio/fileobject'
require 'folio/directory'
require 'folio/document'
require 'folio/link'
require 'folio/device'
require 'folio/socket'
require 'folio/pipe'

#def folio(path)
#  Folio.new(path)
#end

# = Folio
#
# In folio the term `file` means a file object. That is to say any
# type of file system resource: document, directory, device, etc.
# We use the term `document` instead to mean "regular files".
# This terminolgy was chosen for two reasons. Namely, (1) a 
# differentiation in terms was required; and (2) a file in the
# everyday sense is something in which one puts papars
# (eg. documents).

module Folio

  #
  def self.file(*path)
    FileObject[*path]
  end

  def self.shell(*path)
    Shell.new(*path)
  end

  class << self
    # Should we have this? 
    # Perhaps Folio should be the Prompt class?
    #alias_method :new, :shell

    # Should #[] be alias for #file instead?
    #alias_method :[], :shell ???
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
folio-0.3.0 lib/folio.rb