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

Also available in: Atom PDF

Like0
Like0Like0