Sha256: 8d12d6d2c4e5137b147ff874a1114af528524d7283e96d10cfea4d69c3beea78
Contents?: true
Size: 806 Bytes
Versions: 108
Compression:
Stored size: 806 Bytes
Contents
module YARD module Templates module Helpers # Helper methods for managing module objects. module ModuleHelper # Prunes the method listing by running the verifier and removing attributes/aliases # @param [Array<CodeObjects::Base>] list a list of methods # @param [Boolean] hide_attributes whether to prune attribute methods from the list # @return [Array<CodeObjects::Base>] a pruned list of methods def prune_method_listing(list, hide_attributes = true) list = run_verifier(list) list = list.reject {|o| o.is_alias? unless CodeObjects::Proxy === o.namespace } list = list.reject {|o| o.is_attribute? unless CodeObjects::Proxy === o.namespace } if hide_attributes list end end end end end
Version data entries
108 entries across 89 versions & 9 rubygems