Methods
#
C
D
E
H
I
N
O
S
T
Classes and Modules
Constants
UNSAFE_STRING_METHODS = ["capitalize", "chomp", "chop", "delete", "downcase", "gsub", "lstrip", "next", "reverse", "rstrip", "slice", "squeeze", "strip", "sub", "succ", "swapcase", "tr", "tr_s", "upcase"].freeze
Class Public methods
new(*)
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 94
def initialize(*)
  @dirty = false
  super
end
Instance Public methods
+(other)
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 113
def +(other)
  dup.concat(other)
end
<<(value)
concat(value)
This method is also aliased as original_concat <<
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 104
def concat(value)
  if dirty? || value.html_safe?
    super(value)
  else
    super(ERB::Util.h(value))
  end
end
encode_with(coder)
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 129
def encode_with(coder)
  coder.represent_scalar nil, to_str
end
html_safe?()
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 117
def html_safe?
  !dirty?
end
initialize_copy(other)
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 99
def initialize_copy(other)
  super
  @dirty = other.dirty?
end
original_concat(value)
safe_concat(value)
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 89
def safe_concat(value)
  raise SafeConcatError if dirty?
  original_concat(value)
end
to_param()
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 125
def to_param
  to_str
end
to_s()
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 121
def to_s
  self
end
to_yaml(*args)
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 133
def to_yaml(*args)
  return super() if defined?(YAML::ENGINE) && !YAML::ENGINE.syck?
  to_str.to_yaml(*args)
end
Instance Protected methods
dirty?()
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 153
def dirty?
  @dirty
end