class Sprockets::ProcessedAsset::DependencyFile - sprockets-2.11.3 Documentation

# class Sprockets::ProcessedAsset::DependencyFile

### Public Class Methods

new(pathname, mtime, digest) click to toggle source
Calls superclass method

    # File lib/sprockets/processed_asset.rb, line 77
    def initialize(pathname, mtime, digest)
      pathname = Pathname.new(pathname) unless pathname.is_a?(Pathname)
      mtime    = Time.parse(mtime) if mtime.is_a?(String)
      super
    end

### Public Instance Methods

eql?(other) click to toggle source

    # File lib/sprockets/processed_asset.rb, line 83
    def eql?(other)
      other.is_a?(DependencyFile) &&
        pathname.eql?(other.pathname) &&
        mtime.eql?(other.mtime) &&
        digest.eql?(other.digest)
    end

hash() click to toggle source

    # File lib/sprockets/processed_asset.rb, line 90
    def hash
      pathname.to_s.hash
    end