Docs: Fix :class: and :meth: directives

A few instances of the directives were malformed and did not
result in hyperlinks in the generated HTML.

Change-Id: I94d93de928ee4ff24a48797baf2ac77598a20704
Merge pull request #2135 from dpursehouse/fix-meth-and-class-directives

Docs: Fix :class: and :meth: directives