0

I have a method that looks like this:

##
# Opens a file.
#
# Raises:
# +ArgumentError+:: On invalid encoding.
# +Errno::ENOENT+:: On invalid file path.
#

Unfortunately the double colons in Errno::ENOENT is interpreted as the double colons of a labeled list, and the comment renders like this using sdoc:

Screenshot

Is there any way to escape the double colons? I tried +Errno\:\:ENOENT+:: with identical results.

Community
  • 1
  • 1
Hubro
  • 56,214
  • 69
  • 228
  • 381

0 Answers0