Sha256: fa146335dcbfb71e94e436ab9355710a39e9bb230bfb6edc786bb4df7ff56cf5
Contents?: true
Size: 901 Bytes
Versions: 5
Compression:
Stored size: 901 Bytes
Contents
module YARD module Generators class MethodGenerator < Base include Helpers::MethodHelper before_generate :is_method? before_section :aliases, :has_aliases? before_section :source, :isnt_overload? def sections_for(object) [ :header, [ :title, [ G(MethodSignatureGenerator), :aliases ], G(DeprecatedGenerator), G(DocstringGenerator), G(TagsGenerator), G(OverloadsGenerator), :source ] ] end protected def source(object) render_section(G(SourceGenerator), object) end def has_aliases?(object) !object.aliases.empty? end def isnt_overload?(object) !object.is_a?(Tags::OverloadTag) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems