Sha256: 9f582538d31bb29a748843959108e7d3cdd8a5b24371803d1718193c356fe43b

Contents?: true

Size: 316 Bytes

Versions: 5

Compression:

Stored size: 316 Bytes

Contents

module Stowaway
  class FileObj
    attr :fullpath
    
    def initialize(fullpath)
      @fullpath = fullpath
    end
    
    def name
      File.basename(@fullpath)
    end
    
    def path
      File.split(@fullpath)[0]
    end
    
    def ==(fileObj)
      self.fullpath == fileObj.fullpath
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stowaway-0.1.2 lib/stowaway/file.rb
stowaway-0.1.1 lib/stowaway/file.rb
stowaway-0.0.6 lib/stowaway/file.rb
stowaway-0.0.4 lib/stowaway/file.rb
stowaway-0.0.1 lib/stowaway/file.rb