Sha256: 09ff9fb418257812538e9d207823172f9a69a6ca45a54862f96db9c47d45119b
Contents?: true
Size: 391 Bytes
Versions: 5
Compression:
Stored size: 391 Bytes
Contents
module YARD module Generators class MixinsGenerator < Base attr_reader :scope before_generate :has_mixins? def initialize(*args) super @scope = options[:scope] end def sections_for(object) [:header] end protected def has_mixins?(object) !object.mixins(@scope).empty? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems