Sha256: ed59edd4bef6a83f7ed83f34802215288b48be22de0b4cca46272bed9e0231cd

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

module YARD
  module Generators
    class MethodSignatureGenerator < Base
      include Helpers::MethodHelper

      before_generate :has_signature?
      
      def sections_for(object) 
        [:main] 
      end
      
      protected
      
      def has_signature?(object)
        object.signature ? true : false
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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