ruby-changes:56258
From: Nobuyoshi <ko1@a...>
Date: Fri, 28 Jun 2019 15:38:34 +0900 (JST)
Subject: [ruby-changes:56258] Nobuyoshi Nakada: e0c4cb2ea1 (trunk): Define singleton method on each new objects
https://git.ruby-lang.org/ruby.git/commit/?id=e0c4cb2ea1 From e0c4cb2ea1ac648bdd0850dd1621f5e13382b760 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 28 Jun 2019 15:22:27 +0900 Subject: Define singleton method on each new objects diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index 6d1a6ea..873f67b 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -29,6 +29,8 @@ class TestStringIO < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/stringio/test_stringio.rb#L29 nil end assert_raise(TypeError) { StringIO.new(o) } + + o = Object.new def o.to_str 'str' end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/