Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Parses YARD formal type declarations into a human readable format.
branch: master
Failed to load latest commit information.
lib Initial commit
spec Initial commit Initial commit

YARD Types Parser

Parses YARD type declarations and translates them into plain English. A quick example of a YARD type declaration is in the following parameter declaration:

# @param [Array<String, Symbol>] arg takes an Array of Strings or Symbols
def foo(arg)

The parser will convert Array<String, Symbol> into the more readable:

an Array of (Strings or Symbols)

You can quickly parse with:"String, Symbol, false").parse.list_join 
#=> "a String, a Symbol or false"

You can try this yourself live at with plenty more examples.

Something went wrong with that request. Please try again.