crocodile
Docstrings for Crystal methods
crystal-data 26 0 0.1.0 MIT GitHub

crocodile

Generate's basic function docstrings for Crystal function definitions.

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

Becomes

# 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