class ActionView::TemplateDetails::Requested
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/action_view/template_details.rbs class ActionView::TemplateDetails::Requested def build_idx_hash: (Array[] arr) -> untyped end
:nodoc:
def build_idx_hash(arr)
Experimental RBS support (using type sampling data from the type_fusion
project).
def build_idx_hash: ( arr) -> untyped
This signature was generated using 1 sample from 1 application.
def build_idx_hash(arr) [*arr, nil].each_with_index.to_h.freeze end
def initialize(locale:, handlers:, formats:, variants:)
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