class YARD::Handlers::Ruby::Legacy::PrivateConstantHandler
(see Ruby::PrivateConstantHandler)
Private Instance Methods
privatize_constant(name)
click to toggle source
# File lib/yard/handlers/ruby/legacy/private_constant_handler.rb, line 15 def privatize_constant(name) const = Proxy.new(namespace, name) ensure_loaded!(const) const.visibility = :private rescue NamespaceMissingError raise UndocumentableError, "private visibility set on unrecognized constant: #{name}" end