Class: ActionView::OutputBuffer
- Inherits:
-
ActiveSupport::SafeBuffer
- Object
- String
- ActiveSupport::SafeBuffer
- ActionView::OutputBuffer
- Defined in:
- actionview/lib/action_view/buffers.rb
Overview
:nodoc:
Constant Summary
Constants inherited from ActiveSupport::SafeBuffer
ActiveSupport::SafeBuffer::UNSAFE_STRING_METHODS
Constants inherited from String
Instance Method Summary collapse
- #<<(value) ⇒ Object (also: #append=)
-
#initialize ⇒ OutputBuffer
constructor
A new instance of OutputBuffer.
- #safe_expr_append=(val) ⇒ Object
Methods inherited from ActiveSupport::SafeBuffer
#%, #+, #[], #clone_empty, #concat, #encode_with, #html_safe?, #initialize_copy, #prepend, #safe_concat, #to_param, #to_s
Methods inherited from String
#acts_like_string?, #as_json, #at, #blank?, #camelize, #classify, #constantize, #dasherize, #deconstantize, #demodulize, #exclude?, #first, #foreign_key, #from, #html_safe, #humanize, #in_time_zone, #indent, #indent!, #inquiry, #is_utf8?, #last, #mb_chars, #parameterize, #pluralize, #remove, #remove!, #safe_constantize, #singularize, #squish, #squish!, #strip_heredoc, #tableize, #titleize, #to, #to_date, #to_datetime, #to_time, #truncate, #truncate_words, #underscore, #upcase_first
Constructor Details
#initialize ⇒ OutputBuffer
Returns a new instance of OutputBuffer.
7 8 9 10 |
# File 'actionview/lib/action_view/buffers.rb', line 7 def initialize(*) super encode! end |
Instance Method Details
#<<(value) ⇒ Object Also known as: append=
12 13 14 15 |
# File 'actionview/lib/action_view/buffers.rb', line 12 def <<(value) return self if value.nil? super(value.to_s) end |
#safe_expr_append=(val) ⇒ Object
18 19 20 21 |
# File 'actionview/lib/action_view/buffers.rb', line 18 def safe_expr_append=(val) return self if val.nil? safe_concat val.to_s end |