Class: ActionView::OutputBuffer
- Inherits:
-
ActiveSupport::SafeBuffer
- Object
- String
- ActiveSupport::SafeBuffer
- ActionView::OutputBuffer
- Defined in:
- actionpack/lib/action_view/template/handlers/erb.rb
Instance Method Summary (collapse)
- - (Object) <<(value) (also: #append=)
-
- (OutputBuffer) initialize
constructor
A new instance of OutputBuffer.
Methods inherited from ActiveSupport::SafeBuffer
#+, #concat, #encode_with, #html_safe, #html_safe?, #to_s, #to_yaml
Methods inherited from String
#acts_like_string?, #as_json, #at, #blank?, #camelize, #classify, #constantize, #dasherize, #demodulize, #encode_json, #encoding_aware?, #exclude?, #first, #foreign_key, #from, #html_safe, #html_safe!, #humanize, #is_utf8?, #last, #mb_chars, #ord, #parameterize, #pluralize, #singularize, #squish, #squish!, #strip_heredoc, #tableize, #titleize, #to, #to_date, #to_datetime, #to_time, #truncate, #underscore
Constructor Details
- (OutputBuffer) initialize
A new instance of OutputBuffer
9 10 11 12 |
# File 'actionpack/lib/action_view/template/handlers/erb.rb', line 9 def initialize(*) super encode! if encoding_aware? end |
Instance Method Details
- (Object) <<(value) Also known as: append=
14 15 16 |
# File 'actionpack/lib/action_view/template/handlers/erb.rb', line 14 def <<(value) super(value.to_s) end |