Class ActiveSupport::SafeBuffer
In: vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb
Parent: String

Methods

+   <<   concat   html_safe   html_safe?   to_s  

External Aliases

concat -> safe_concat

Public Instance methods

[Source]

    # File vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb, line 91
91:     def +(other)
92:       dup.concat(other)
93:     end

[Source]

    # File vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb, line 95
95:     def <<(value)
96:       self.concat(value)
97:     end

[Source]

    # File vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb, line 83
83:     def concat(value)
84:       if value.html_safe?
85:         super(value)
86:       else
87:         super(ERB::Util.h(value))
88:       end
89:     end

[Source]

     # File vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb, line 103
103:     def html_safe
104:       self
105:     end

[Source]

     # File vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb, line 99
 99:     def html_safe?
100:       true
101:     end

[Source]

     # File vendor/rails/activesupport/lib/active_support/core_ext/string/output_safety.rb, line 107
107:     def to_s
108:       self
109:     end

[Validate]