File: //usr/local/rvm/gems/ruby-3.0.2/doc/i18n-1.8.11/ri/I18n/Backend/Base/interpolate-i.ri
U:RDoc::AnyMethod[iI"interpolate:ETI"$I18n::Backend::Base#interpolate;TF:protectedo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".Interpolates values into a given subject.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I",if the given subject is a string then:
;TI"bmethod interpolates "file %{file} opened by %%{user}", :file => 'test.txt', :user => 'Mr. X'
;TI",# => "file test.txt opened by %{user}"
;TI"
;TI",if the given subject is an array then:
;TI"Ueach element of the array is recursively interpolated (until it finds a string)
;TI"bmethod interpolates ["yes, %{user}", ["maybe no, %{user}, "no, %{user}"]], :user => "bartuz"
;TI"># => "["yes, bartuz",["maybe no, bartuz", "no, bartuz"]]";T:@format0:
@fileI"lib/i18n/backend/base.rb;T:0@omit_headings_from_table_of_contents_below000[ I"+(locale, subject, values = EMPTY_HASH);T@FI" Base;TcRDoc::NormalModule00