123456789_123456789_123456789_123456789_123456789_

Class: ActionView::TemplateDetails::Requested

Relationships & Source Files
Inherits: Object
Defined in: actionview/lib/action_view/template_details.rb

Constant Summary

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(locale:, handlers:, formats:, variants:) ⇒ Requested

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 11

def initialize(locale:, handlers:, formats:, variants:)
  @locale = locale
  @handlers = handlers
  @formats = formats
  @variants = variants

  @locale_idx   = build_idx_hash(locale)
  @handlers_idx = build_idx_hash(handlers)
  @formats_idx  = build_idx_hash(formats)
  if variants == :any
    @variants_idx = ANY_HASH
  else
    @variants_idx = build_idx_hash(variants)
  end
end

Instance Attribute Details

#formats (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 6

attr_reader :locale, :handlers, :formats, :variants

#formats_idx (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 7

attr_reader :locale_idx, :handlers_idx, :formats_idx, :variants_idx

#handlers (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 6

attr_reader :locale, :handlers, :formats, :variants

#handlers_idx (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 7

attr_reader :locale_idx, :handlers_idx, :formats_idx, :variants_idx

#locale (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 6

attr_reader :locale, :handlers, :formats, :variants

#locale_idx (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 7

attr_reader :locale_idx, :handlers_idx, :formats_idx, :variants_idx

#variants (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 6

attr_reader :locale, :handlers, :formats, :variants

#variants_idx (readonly)

[ GitHub ]

  
# File 'actionview/lib/action_view/template_details.rb', line 7

attr_reader :locale_idx, :handlers_idx, :formats_idx, :variants_idx