instance method
%
Ruby on Rails 7.2.3.2
Since v4.0.13Signature
%(args)
No documentation comment.
Parameters
-
argsreq
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 123
def %(args)
case args
when Hash
escaped_args = args.transform_values { |arg| explicit_html_escape_interpolated_argument(arg) }
else
escaped_args = Array(args).map { |arg| explicit_html_escape_interpolated_argument(arg) }
end
new_safe_buffer = self.class.new(super(escaped_args))
new_safe_buffer.instance_variable_set(:@html_safe, @html_safe)
new_safe_buffer
end
Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 123
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer