Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lsegal/yard-defaultreturn

Default return types for methods in a class/module
https://github.com/lsegal/yard-defaultreturn

Last synced: about 1 month ago
JSON representation

Default return types for methods in a class/module

Awesome Lists containing this project

README

        

# yard-defaultreturn

Adds `@defaultreturn` tag to classes/modules to define a return tag on every
method in the namespace.

## Usage

Using `@defaultreturn` will automatically declare `@return` tags on methods
without any return type defined inside the class/module:

# @defaultreturn [Boolean] the boolean value
class A
def foo; end

# @return [Array] override default
def bar; end
end

## Install

gem install yard-defaultreturn

or checkout source and

rake install