Sha256: 0a57cea36395415ed0f4fc9af7b2552a98fc1486283eba6f45fc4776b56f37a8
Contents?: true
Size: 662 Bytes
Versions: 62
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true # Handles 'private', 'protected', and 'public' calls. class YARD::Handlers::Ruby::VisibilityHandler < YARD::Handlers::Ruby::Base include YARD::Handlers::Ruby::DecoratorHandlerMethods handles method_call(:private) handles method_call(:protected) handles method_call(:public) namespace_only process do return if (ident = statement.jump(:ident)) == statement case statement.type when :var_ref, :vcall self.visibility = ident.first.to_sym when :fcall, :command process_decorator do |method| method.visibility = ident.first if method.respond_to? :visibility= end end end end
Version data entries
62 entries across 61 versions & 9 rubygems