class Sprockets::Asset

def initialize(environment, logical_path, pathname)

def initialize(environment, logical_path, pathname)
  raise ArgumentError, "Asset logical path has no extension: #{logical_path}" if File.extname(logical_path) == ""
  @root         = environment.root
  @logical_path = logical_path.to_s
  @pathname     = Pathname.new(pathname)
  @content_type = environment.content_type_of(pathname)
  # drop precision to 1 second, same pattern followed elsewhere
  @mtime        = Time.at(environment.stat(pathname).mtime.to_i)
  @length       = environment.stat(pathname).size
  @digest       = environment.file_digest(pathname).hexdigest
end