From 33b56d6141a4964a8e59d4fbf0efadc936336dd9 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 3 Jun 2021 15:10:28 +0200 Subject: [PATCH] RDoc: escape to avoid links to the word Set We would like to avoid linking to the Set class for these words. --- lib/getoptlong.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb index 53b80ff..d3fff34 100644 --- a/lib/getoptlong.rb +++ b/lib/getoptlong.rb @@ -114,7 +114,7 @@ class MissingArgument < Error; end class InvalidOption < Error; end # - # Set up option processing. + # \Set up option processing. # # The options to support are passed to new() as an array of arrays. # Each sub-array contains any number of String option names which carry @@ -190,7 +190,7 @@ def initialize(*arguments) end # - # Set the handling of the ordering of options and arguments. + # \Set the handling of the ordering of options and arguments. # A RuntimeError is raised if option processing has already started. # # The supplied value must be a member of GetoptLong::ORDERINGS. It alters @@ -267,7 +267,7 @@ def ordering=(ordering) attr_reader :ordering # - # Set options. Takes the same argument as GetoptLong.new. + # \Set options. Takes the same argument as GetoptLong.new. # # Raises a RuntimeError if option processing has already started. # @@ -341,7 +341,7 @@ def set_options(*arguments) end # - # Set/Unset `quiet' mode. + # \Set/Unset `quiet' mode. # attr_writer :quiet @@ -383,7 +383,7 @@ def terminated? end # - # Set an error (a protected method). + # \Set an error (a protected method). # def set_error(type, message) $stderr.print("#{$0}: #{message}\n") if !@quiet