mojombo/tomdoc — Issue #36: Specifying Types
Author: trans
Created: 2011-11-11 19:17:27+00:00
State: open

One of the nice things about YARD is the ability to specifically denote the types of parameters and return values. Of course with Ruby and duck-typing that's not exact, but it helps give a general sense of the purpose. So for instance you mgith have:

```ruby
# @param [String] name
# @return [String] name upcased
def upcase(name)
name.upcase
end
```

How might this be done in Tomdoc?