class OutputSafetyTest

Public Instance Methods

setup() click to toggle source
# File activesupport/test/core_ext/string_ext_test.rb, line 669
def setup
  @string = "hello".dup
  @object = Class.new(Object) do
    def to_s
      "other"
    end
  end.new
end
to_s() click to toggle source
# File activesupport/test/core_ext/string_ext_test.rb, line 672
def to_s
  "other"
end