instance method
interpolate_lambda?
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
interpolate_lambda?(object, string, key)
returns true when the given value responds to :call and the key is an interpolation placeholder in the given string
Parameters
-
objectreq -
stringreq -
keyreq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb, line 203
def interpolate_lambda?(object, string, key)
object.respond_to?(:call) && string =~ /%\{#{key}\}|%\<#{key}>.*?\d*\.?\d*[bBdiouxXeEfgGcps]\}/
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/base.rb line 203
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::Base