method

set_block_back_references

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveSupport::SafeBuffer
set_block_back_references(block, match_data) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 212
      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
Register or log in to add new notes.