class Sprockets::Pathname
def ==(pathname)
def ==(pathname) environment == pathname.environment && absolute_location == pathname.absolute_location end
def contents
def contents IO.read(absolute_location) end
def find(location, kind = :file)
def find(location, kind = :file) location = File.join(absolute_location, location) File.send("#{kind}?", location) ? Pathname.new(environment, location) : nil end
def initialize(environment, absolute_location)
def initialize(environment, absolute_location) @environment = environment @absolute_location = File.expand_path(absolute_location) end
def parent_pathname
def parent_pathname Pathname.new(environment, File.dirname(absolute_location)) end
def source_file
def source_file SourceFile.new(environment, self) end
def to_s
def to_s absolute_location end