[前][次][番号順一覧][スレッド一覧]

ruby-changes:26181

From: ngoto <ko1@a...>
Date: Thu, 6 Dec 2012 23:30:32 +0900 (JST)
Subject: [ruby-changes:26181] ngoto:r38238 (trunk): * ext/dl/lib/dl/func.rb (CALL_TYPE_TO_ABI, FiddleClosureCFunc): exclude private constants and methods from rdoc

ngoto	2012-12-06 23:30:24 +0900 (Thu, 06 Dec 2012)

  New Revision: 38238

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38238

  Log:
    * ext/dl/lib/dl/func.rb (CALL_TYPE_TO_ABI, FiddleClosureCFunc): exclude private constants and methods from rdoc

  Modified files:
    trunk/ext/dl/lib/dl/func.rb

Index: ext/dl/lib/dl/func.rb
===================================================================
--- ext/dl/lib/dl/func.rb	(revision 38237)
+++ ext/dl/lib/dl/func.rb	(revision 38238)
@@ -12,6 +12,7 @@
     include ValueUtil
 
     if DL.fiddle?
+      # :stopdoc:
       CALL_TYPE_TO_ABI = Hash.new { |h, k|
         raise RuntimeError, "unsupported call type: #{k}"
       }.merge({ :stdcall =>
@@ -20,13 +21,14 @@
                 nil      => Fiddle::Function::DEFAULT
               }).freeze
       private_constant :CALL_TYPE_TO_ABI
+      # :startdoc:
 
-      def self.call_type_to_abi(call_type)
+      def self.call_type_to_abi(call_type) # :nodoc:
         CALL_TYPE_TO_ABI[call_type]
       end
       private_class_method :call_type_to_abi
 
-      class FiddleClosureCFunc < Fiddle::Closure
+      class FiddleClosureCFunc < Fiddle::Closure # :nodoc: all
         def initialize ctype, arg, abi, name
           @name = name
           super(ctype, arg, abi)
@@ -37,7 +39,7 @@
       end
       private_constant :FiddleClosureCFunc
 
-      def self.class_fiddle_closure_cfunc
+      def self.class_fiddle_closure_cfunc # :nodoc:
         FiddleClosureCFunc
       end
       private_class_method :class_fiddle_closure_cfunc

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]