instance method
%
Ruby on Rails 4.1.16
Since v4.0.13Signature
%(args)
No documentation comment.
Parameters
-
argsreq
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 189
def %(args)
case args
when Hash
escaped_args = Hash[args.map { |k,arg| [k, 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 189
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer