Project

General

Profile

Bug #1768

json で Kernel に追加されるメソッドは private であるべき

Added by okkez (okkez _) over 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.2dev (2009-07-13 trunk 24067) [x86_64-linux]
Backport:

Description

=begin
json ライブラリで Kernel モジュールに追加されるメソッドは private instance methods であるべきだと思います。

Index: json/lib/json/common.rb
===================================================================
--- json/lib/json/common.rb (revision 24081)
+++ json/lib/json/common.rb (working copy)
@@ -310,6 +310,7 @@
end

module ::Kernel

  • private # Outputs objs to STDOUT as JSON strings in the shortest form, that is in # one line. def j(*objs) =end

History

#1

Updated by naruse (Yui NARUSE) over 10 years ago

  • Status changed from Open to Assigned
  • Assignee set to naruse (Yui NARUSE)

=begin
originalの作者に投げときます。1.9.2には取り込まれるでしょう。
=end

#2

Updated by naruse (Yui NARUSE) over 10 years ago

  • Status changed from Assigned to Closed

=begin
json 1.1.9でとりこまれました
=end

Also available in: Atom PDF