Project

General

Profile

Actions

Bug #1768

closed

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

Added by okkez (okkez _) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
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
Actions #1

Updated by naruse (Yui NARUSE) almost 15 years ago

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

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

Actions #2

Updated by naruse (Yui NARUSE) over 14 years ago

  • Status changed from Assigned to Closed

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

Actions

Also available in: Atom PDF

Like0
Like0Like0