instance method
slice!
Ruby on Rails edge
Since v7.1.6Signature
slice!(...)
No documentation comment.
Parameters
-
...req
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 52
def slice!(...)
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 52
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer