instance method
set_block_back_references
Ruby on Rails 6.1.7.10
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 330
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 330
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer