AS guide: documents where output safety is defined

This commit is contained in:
Xavier Noria
2010-02-06 16:15:10 +01:00
parent 7cb459eb60
commit dcfc3b3733

View File

@@ -701,6 +701,8 @@ def raw(stringish)
end
</ruby>
NOTE: Defined in +active_support/core_ext/string/output_safety.rb+.
h4. +squish+
The method +String#squish+ strips leading and trailing whitespace, and substitutes runs of whitespace with a single space each: