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