instance method slice!

Ruby on Rails 7.2.3

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

slice!(*args)

No documentation comment.

Parameters

args rest
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 51
    def slice!(*args)
      new_string = super

      return new_string if !html_safe? || new_string.nil?

      string_into_safe_buffer(new_string, true)
    end

Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 51 · 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