Sha256: 8a6d897313421b9a2d9c41294b7c8b34960ef2363876a68774f4dbbbe8559c1d

Contents?: true

Size: 398 Bytes

Versions: 8

Compression:

Stored size: 398 Bytes

Contents

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

  handles method_call(:public_class_method)
  namespace_only

  process do
    process_decorator :scope => :class do |method|
      method.visibility = :public 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/public_class_method_handler.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/handlers/ruby/public_class_method_handler.rb
yard-0.9.5 lib/yard/handlers/ruby/public_class_method_handler.rb
yard-0.9.4 lib/yard/handlers/ruby/public_class_method_handler.rb
yard-0.9.3 lib/yard/handlers/ruby/public_class_method_handler.rb
yard-0.9.2 lib/yard/handlers/ruby/public_class_method_handler.rb
yard-0.9.1 lib/yard/handlers/ruby/public_class_method_handler.rb
yard-0.9.0 lib/yard/handlers/ruby/public_class_method_handler.rb