Class: Sprockets::ProcessedAsset::DependencyFile

### Home Classes Methods

### In Files

- lib/sprockets/processed_asset.rb

### Parent

Struct.new(:pathname, :mtime, :digest)

### Methods

- ::new
- #eql?
- #hash

### Class/Module Index

Quicksearch

- Sprockets
- Sprockets::ArgumentError
- Sprockets::Asset
- Sprockets::AssetAttributes
- Sprockets::Base
- Sprockets::BundledAsset
- Sprockets::Cache
- Sprockets::Cache::FileStore
- Sprockets::Caching
- Sprockets::CharsetNormalizer
- Sprockets::CircularDependencyError
- Sprockets::ClosureCompressor
- Sprockets::Compressing
- Sprockets::ContentTypeMismatch
- Sprockets::Context
- Sprockets::DirectiveProcessor
- Sprockets::EcoTemplate
- Sprockets::EjsTemplate
- Sprockets::EncodingError
- Sprockets::EngineError
- Sprockets::Engines
- Sprockets::Environment
- Sprockets::Error
- Sprockets::FileNotFound
- Sprockets::FileOutsidePaths
- Sprockets::Index
- Sprockets::JstProcessor
- Sprockets::Manifest
- Sprockets::Mime
- Sprockets::NotImplementedError
- Sprockets::Paths
- Sprockets::ProcessedAsset
- Sprockets::ProcessedAsset::DependencyFile
- Sprockets::Processing
- Sprockets::Processor
- Sprockets::SafetyColons
- Sprockets::SassCacheStore
- Sprockets::SassCompressor
- Sprockets::SassFunctions
- Sprockets::SassImporter
- Sprockets::SassTemplate
- Sprockets::ScssTemplate
- Sprockets::Server
- Sprockets::StaticAsset
- Sprockets::UglifierCompressor
- Sprockets::UnserializeError
- Sprockets::Utils
- Sprockets::YUICompressor
- Rake
- Rake::SprocketsTask

No matching classes.

# Sprockets::ProcessedAsset::DependencyFile

### Public Class Methods

new(pathname, mtime, digest) click to toggle source

    # 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.