instance method
set_block_back_references
Ruby on Rails 8.1.2
Since v6.0.6 PrivateSignature
set_block_back_references(block, match_data)
No documentation comment.
Parameters
-
blockreq -
match_datareq
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 210
def set_block_back_references(block, match_data)
block.binding.eval("proc { |m| $~ = m }").call(match_data)
rescue ArgumentError
# Can't create binding from C level Proc
end
Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 210
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer