Class: Bridgetown::OutputBuffer
- Inherits:
-
ActiveSupport::SafeBuffer
- Object
- ActiveSupport::SafeBuffer
- Bridgetown::OutputBuffer
- Defined in:
- lib/bridgetown-core/converters/erb_templates.rb
Instance Method Summary collapse
- #<<(value) ⇒ Object (also: #append=)
-
#initialize ⇒ OutputBuffer
constructor
A new instance of OutputBuffer.
- #safe_expr_append=(val) ⇒ Object
Constructor Details
#initialize ⇒ OutputBuffer
Returns a new instance of OutputBuffer.
7 8 9 10 |
# File 'lib/bridgetown-core/converters/erb_templates.rb', line 7 def initialize(*) super encode! end |
Instance Method Details
#<<(value) ⇒ Object Also known as: append=
12 13 14 15 16 |
# File 'lib/bridgetown-core/converters/erb_templates.rb', line 12 def <<(value) return self if value.nil? super(value.to_s) end |
#safe_expr_append=(val) ⇒ Object
19 20 21 22 23 |
# File 'lib/bridgetown-core/converters/erb_templates.rb', line 19 def safe_expr_append=(val) return self if val.nil? # rubocop:disable Lint/ReturnInVoidContext safe_concat val.to_s end |