Sha256: 4b9f4cc6ab5838c7379412bc73aa5af87578b57a5914265979d7738e09bdc5f4

Contents?: true

Size: 403 Bytes

Versions: 8

Compression:

Stored size: 403 Bytes

Contents

# Sets visibility of a class method to private.
class YARD::Handlers::Ruby::PrivateClassMethodHandler < YARD::Handlers::Ruby::Base
  include YARD::Handlers::Ruby::DecoratorHandlerMethods

  handles method_call(:private_class_method)
  namespace_only

  process do
    process_decorator :scope => :class do |method|
      method.visibility = :private if method.respond_to? :visibility=
    end
  end
end

Version data entries

8 entries across 7 versions & 2 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/handlers/ruby/private_class_method_handler.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/handlers/ruby/private_class_method_handler.rb
yard-0.9.5 lib/yard/handlers/ruby/private_class_method_handler.rb
yard-0.9.4 lib/yard/handlers/ruby/private_class_method_handler.rb
yard-0.9.3 lib/yard/handlers/ruby/private_class_method_handler.rb
yard-0.9.2 lib/yard/handlers/ruby/private_class_method_handler.rb
yard-0.9.1 lib/yard/handlers/ruby/private_class_method_handler.rb
yard-0.9.0 lib/yard/handlers/ruby/private_class_method_handler.rb