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

https://github.com/crystal-data/crocodile

Atom extension to create docstrings for Crystal methods
https://github.com/crystal-data/crocodile

Last synced: about 2 months ago
JSON representation

Atom extension to create docstrings for Crystal methods

Awesome Lists containing this project

README

          

# crocodile

Generate's basic function docstrings for Crystal function definitions.

```crystal
def flip(t : Tensor | Enumerable, axis : Int) : Tensor
...
end
```

Becomes

```crystal
# Brief description of flip
#
# Arguments
# ---------
# t : Tensor | Enumerable
# Brief description of t : Tensor | Enumerable
# axis : Int
# Brief description of axis : Int
#
# Returns
# -------
# Tensor
#
# Examples
# --------
def flip(t : Tensor | Enumerable, axis : Int) : Tensor
...
end
```