Sha256: 17c49ab21ce3273602c8b3bc01e0c77dab2e257b28658e9081105ef621a6dc44

Contents?: true

Size: 496 Bytes

Versions: 6

Compression:

Stored size: 496 Bytes

Contents

module YARD
  module Generators
    class AttributesGenerator < Base
      include Helpers::MethodHelper
      
      before_generate :has_attributes?
      before_list :includes
      
      def sections_for(object) [:header] end
        
      protected
      
      def includes
        extend Helpers::UMLHelper if format == :text
      end
      
      def has_attributes?
        current_object.class_attributes.size + current_object.instance_attributes.size > 0
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yard-0.2.3.5 lib/yard/generators/attributes_generator.rb
yard-0.2.3.4 lib/yard/generators/attributes_generator.rb
yard-0.2.3.2 lib/yard/generators/attributes_generator.rb
yard-0.2.3.3 lib/yard/generators/attributes_generator.rb
yard-0.2.2 lib/yard/generators/attributes_generator.rb
yard-0.2.3 lib/yard/generators/attributes_generator.rb