* 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
This commit is contained in:
parent
382217c8b6
commit
34592fb5b6
@ -12,6 +12,7 @@ module DL
|
|||||||
include ValueUtil
|
include ValueUtil
|
||||||
|
|
||||||
if DL.fiddle?
|
if DL.fiddle?
|
||||||
|
# :stopdoc:
|
||||||
CALL_TYPE_TO_ABI = Hash.new { |h, k|
|
CALL_TYPE_TO_ABI = Hash.new { |h, k|
|
||||||
raise RuntimeError, "unsupported call type: #{k}"
|
raise RuntimeError, "unsupported call type: #{k}"
|
||||||
}.merge({ :stdcall =>
|
}.merge({ :stdcall =>
|
||||||
@ -20,13 +21,14 @@ module DL
|
|||||||
nil => Fiddle::Function::DEFAULT
|
nil => Fiddle::Function::DEFAULT
|
||||||
}).freeze
|
}).freeze
|
||||||
private_constant :CALL_TYPE_TO_ABI
|
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]
|
CALL_TYPE_TO_ABI[call_type]
|
||||||
end
|
end
|
||||||
private_class_method :call_type_to_abi
|
private_class_method :call_type_to_abi
|
||||||
|
|
||||||
class FiddleClosureCFunc < Fiddle::Closure
|
class FiddleClosureCFunc < Fiddle::Closure # :nodoc: all
|
||||||
def initialize ctype, arg, abi, name
|
def initialize ctype, arg, abi, name
|
||||||
@name = name
|
@name = name
|
||||||
super(ctype, arg, abi)
|
super(ctype, arg, abi)
|
||||||
@ -37,7 +39,7 @@ module DL
|
|||||||
end
|
end
|
||||||
private_constant :FiddleClosureCFunc
|
private_constant :FiddleClosureCFunc
|
||||||
|
|
||||||
def self.class_fiddle_closure_cfunc
|
def self.class_fiddle_closure_cfunc # :nodoc:
|
||||||
FiddleClosureCFunc
|
FiddleClosureCFunc
|
||||||
end
|
end
|
||||||
private_class_method :class_fiddle_closure_cfunc
|
private_class_method :class_fiddle_closure_cfunc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user