Namespace
Methods
D
N
Attributes
[R] finder
[R] format
[R] name
[R] options
Class Public methods
new(name, format, finder, options={})
# File actionpack/lib/action_view/digestor.rb, line 47
def initialize(name, format, finder, options={})
  @name, @format, @finder, @options = name, format, finder, options
end
Instance Public methods
dependencies()
# File actionpack/lib/action_view/digestor.rb, line 60
def dependencies
  DependencyTracker.find_dependencies(name, template)
rescue ActionView::MissingTemplate
  [] # File doesn't exist, so no dependencies
end
digest(name, format, finder, options = {})
# File actionpack/lib/action_view/digestor.rb, line 12
def digest(name, format, finder, options = {})
  cache_key = ([name, format] + Array.wrap(options[:dependencies])).join('.')
  # this is a correctly done double-checked locking idiom
  # (ThreadSafe::Cache's lookups have volatile semantics)
  @@cache[cache_key] || @@digest_monitor.synchronize do
    @@cache.fetch(cache_key) do # re-check under lock
      compute_and_store_digest(cache_key, name, format, finder, options)
    end
  end
end
nested_dependencies()
# File actionpack/lib/action_view/digestor.rb, line 66
def nested_dependencies
  dependencies.collect do |dependency|
    dependencies = PartialDigestor.new(dependency, format, finder).nested_dependencies
    dependencies.any? ? { dependency => dependencies } : dependency
  end
end