Class: Flatrack::View::OutputBuffer
- Inherits:
-
ActiveSupport::SafeBuffer
- Object
- ActiveSupport::SafeBuffer
- Flatrack::View::OutputBuffer
- Defined in:
- lib/flatrack/view/output_buffer.rb
Overview
:nodoc:
Instance Method Summary collapse
- #<<(value) ⇒ Object (also: #append=)
-
#initialize ⇒ OutputBuffer
constructor
A new instance of OutputBuffer.
- #safe_concat(value) ⇒ Object (also: #safe_append=)
Constructor Details
#initialize ⇒ OutputBuffer
Returns a new instance of OutputBuffer.
4 5 6 7 |
# File 'lib/flatrack/view/output_buffer.rb', line 4 def initialize(*) super encode! end |
Instance Method Details
#<<(value) ⇒ Object Also known as: append=
9 10 11 12 |
# File 'lib/flatrack/view/output_buffer.rb', line 9 def <<(value) return self if value.nil? super(value.to_s) end |
#safe_concat(value) ⇒ Object Also known as: safe_append=
16 17 18 19 |
# File 'lib/flatrack/view/output_buffer.rb', line 16 def safe_concat(value) return self if value.nil? super(value.to_s) end |