instance method compile_if_an_interpolation

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

compile_if_an_interpolation(string)

No documentation comment.

Parameters

string req
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/interpolation_compiler.rb, line 27
        def compile_if_an_interpolation(string)
          if interpolated_str?(string)
            string.instance_eval <<-RUBY_EVAL, __FILE__, __LINE__
              def i18n_interpolate(v = {})
                "#{compiled_interpolation_body(string)}"
              end
            RUBY_EVAL
          end

          string
        end

Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/interpolation_compiler.rb line 27 · View on GitHub · Improve this page · Find usages on GitHub

Defined in I18n::Backend::InterpolationCompiler::Compiler

Type at least 2 characters to search.

↑↓ navigate · open · esc close