class ActionView::TemplateDetails
:nodoc:
def format_or_default
def format_or_default format || handler_class.try(:default_format) end
def handler_class
def handler_class Template.handler_for_extension(handler) end
def initialize(locale, handler, format, variant)
def initialize(locale, handler, format, variant) @locale = locale @handler = handler @format = format @variant = variant end
def matches?(requested)
def matches?(requested) requested.formats_idx[@format] && requested.locale_idx[@locale] && requested.variants_idx[@variant] && requested.handlers_idx[@handler] end
def sort_key_for(requested)
def sort_key_for(requested) [ requested.formats_idx[@format], requested.locale_idx[@locale], requested.variants_idx[@variant], requested.handlers_idx[@handler] ] end