Return documentation with :as param considering

Bugfix for documentation method.