Sha256: 56cb1c25785294e5ad86fc18eb5c4011ea905b7b0d1a7e5bbd2b33d787634b6a
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
module YARD module Generators class MethodGenerator < Base before_generate :is_method? before_section :aliases, :has_aliases? def sections_for(object) [ :header, [ :title, [ G(MethodSignatureGenerator), :aliases ], G(DeprecatedGenerator), G(DocstringGenerator), G(TagsGenerator), G(SourceGenerator) ] ] end protected def has_aliases?(object) !object.aliases.empty? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-0.2.2 | lib/yard/generators/method_generator.rb |