ruby-changes:47826
From: mame <ko1@a...>
Date: Sun, 17 Sep 2017 17:04:43 +0900 (JST)
Subject: [ruby-changes:47826] mame:r59944 (trunk): ext/io/console/lib/console/size.rb: Fix the context of method definition
mame 2017-09-17 17:04:34 +0900 (Sun, 17 Sep 2017) New Revision: 59944 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59944 Log: ext/io/console/lib/console/size.rb: Fix the context of method definition `console_size` is not a instance method but a class method. Modified files: trunk/ext/io/console/lib/console/size.rb Index: ext/io/console/lib/console/size.rb =================================================================== --- ext/io/console/lib/console/size.rb (revision 59943) +++ ext/io/console/lib/console/size.rb (revision 59944) @@ -10,7 +10,7 @@ end https://github.com/ruby/ruby/blob/trunk/ext/io/console/lib/console/size.rb#L10 begin require 'io/console' rescue LoadError - class IO + class << IO alias console_size default_console_size end else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/