Skip to content

Commit 34592fb

Browse files
author
ngoto
committed
* ext/dl/lib/dl/func.rb (CALL_TYPE_TO_ABI, FiddleClosureCFunc): exclude private constants and methods from rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 382217c commit 34592fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ext/dl/lib/dl/func.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Function < parent
1212
include ValueUtil
1313

1414
if DL.fiddle?
15+
# :stopdoc:
1516
CALL_TYPE_TO_ABI = Hash.new { |h, k|
1617
raise RuntimeError, "unsupported call type: #{k}"
1718
}.merge({ :stdcall =>
@@ -20,13 +21,14 @@ class Function < parent
2021
nil => Fiddle::Function::DEFAULT
2122
}).freeze
2223
private_constant :CALL_TYPE_TO_ABI
24+
# :startdoc:
2325

24-
def self.call_type_to_abi(call_type)
26+
def self.call_type_to_abi(call_type) # :nodoc:
2527
CALL_TYPE_TO_ABI[call_type]
2628
end
2729
private_class_method :call_type_to_abi
2830

29-
class FiddleClosureCFunc < Fiddle::Closure
31+
class FiddleClosureCFunc < Fiddle::Closure # :nodoc: all
3032
def initialize ctype, arg, abi, name
3133
@name = name
3234
super(ctype, arg, abi)
@@ -37,7 +39,7 @@ def name
3739
end
3840
private_constant :FiddleClosureCFunc
3941

40-
def self.class_fiddle_closure_cfunc
42+
def self.class_fiddle_closure_cfunc # :nodoc:
4143
FiddleClosureCFunc
4244
end
4345
private_class_method :class_fiddle_closure_cfunc

0 commit comments

Comments
 (0)