instance method set_block_back_references

Ruby on Rails 6.1.7.10

Since v6.0.6 Private

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

set_block_back_references(block, match_data)

No documentation comment.

Parameters

block req
match_data req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close