Class: Padrino::SafeBuffer
Overview
Padrino::SafeBuffer is based on ActiveSupport::SafeBuffer
Defined Under Namespace
Classes: SafeConcatError
Constant Summary collapse
- UNSAFE_STRING_METHODS =
%w( capitalize chomp chop delete downcase gsub lstrip next reverse rstrip slice squeeze strip sub succ swapcase tr tr_s upcase )
Instance Method Summary
-
#%(args) ⇒ Object
-
#+(other) ⇒ Object
-
#[](*args) ⇒ Object
-
#clone_empty ⇒ Object
-
#concat(value) ⇒ Object (also: #<<)
-
#encode_with(coder) ⇒ Object
-
#html_safe? ⇒ Boolean
-
#initialize(str = "") ⇒ SafeBuffer
constructor A new instance of SafeBuffer. -
#initialize_copy(other) ⇒ Object
-
#prepend(value) ⇒ Object
-
#safe_concat(value) ⇒ Object
-
#to_param ⇒ Object
-
#to_s ⇒ Object
Methods inherited from String
#camelize, #classify, #colorize, #constantize, #html_safe, #pluralize, #underscore
Constructor Details
#initialize(str = "") ⇒ SafeBuffer
Returns a new instance of SafeBuffer.
Instance Method Details
#%(args) ⇒ Object
#+(other) ⇒ Object
#[](*args) ⇒ Object
#clone_empty ⇒ Object
#concat(value) ⇒ Object Also known as: <<
#encode_with(coder) ⇒ Object
#html_safe? ⇒ Boolean
#initialize_copy(other) ⇒ Object
#prepend(value) ⇒ Object
#safe_concat(value) ⇒ Object
#to_param ⇒ Object
#to_s ⇒ Object
© 2010–2020 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/SafeBuffer