instance method
%
Ruby on Rails 4.0.13
Since v4.0.13Signature
%(args)
No documentation comment.
Parameters
-
argsreq
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 149
def %(args)
args = Array(args).map do |arg|
if !html_safe? || arg.html_safe?
arg
else
ERB::Util.h(arg)
end
end
self.class.new(super(args))
end
Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 149
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer