Method: ActiveSupport::SafeBuffer#*
- Defined in:
- activesupport/lib/active_support/core_ext/string/output_safety.rb
#*(_) ⇒ Object
116 117 118 119 120 121 |
# File 'activesupport/lib/active_support/core_ext/string/output_safety.rb', line 116 def *(_) new_string = super new_safe_buffer = new_string.is_a?(SafeBuffer) ? new_string : SafeBuffer.new(new_string) new_safe_buffer.instance_variable_set(:@html_safe, @html_safe) new_safe_buffer end |