@@ -36,7 +36,7 @@ Other characters, such as the Euro symbol, are multi-byte:
3636
3737Ruby encodings are defined by constants in class \Encoding.
3838There can be only one instance of \Encoding for each of these constants.
39- \ Method Encoding.list returns an array of \Encoding objects (one for each constant):
39+ Method Encoding.list returns an array of \Encoding objects (one for each constant):
4040
4141 Encoding.list.size # => 103
4242 Encoding.list.first.class # => Encoding
@@ -45,7 +45,7 @@ There can be only one instance of \Encoding for each of these constants.
4545
4646=== Names and Aliases
4747
48- \ Method Encoding#name returns the name of an \Encoding:
48+ Method Encoding#name returns the name of an \Encoding:
4949
5050 Encoding::ASCII_8BIT.name # => "ASCII-8BIT"
5151 Encoding::WINDOWS_31J.name # => "Windows-31J"
@@ -58,29 +58,29 @@ method Encoding#names returns an array containing the name and all aliases:
5858 Encoding::WINDOWS_31J.names
5959 #=> ["Windows-31J", "CP932", "csWindows31J", "SJIS", "PCK"]
6060
61- \ Method Encoding.aliases returns a hash of all alias/name pairs:
61+ Method Encoding.aliases returns a hash of all alias/name pairs:
6262
6363 Encoding.aliases.size # => 71
6464 Encoding.aliases.take(3)
6565 # => [["BINARY", "ASCII-8BIT"], ["CP437", "IBM437"], ["CP720", "IBM720"]]
6666
67- \ Method Encoding.name_list returns an array of all the encoding names and aliases:
67+ Method Encoding.name_list returns an array of all the encoding names and aliases:
6868
6969 Encoding.name_list.size # => 175
7070 Encoding.name_list.take(3)
7171 # => ["ASCII-8BIT", "UTF-8", "US-ASCII"]
7272
73- \ Method +name_list+ returns more entries than method +list+
73+ Method +name_list+ returns more entries than method +list+
7474because it includes both the names and their aliases.
7575
76- \ Method Encoding.find returns the \Encoding for a given name or alias, if it exists:
76+ Method Encoding.find returns the \Encoding for a given name or alias, if it exists:
7777
7878 Encoding.find("US-ASCII") # => #<Encoding:US-ASCII>
7979 Encoding.find("US-ASCII").class # => Encoding
8080
8181=== Default Encodings
8282
83- \ Method Encoding.find, above, also returns a default \Encoding
83+ Method Encoding.find, above, also returns a default \Encoding
8484for each of these special names:
8585
8686- +external+: the default external \Encoding:
@@ -100,27 +100,27 @@ for each of these special names:
100100
101101 Encoding.find("filesystem") # => #<Encoding:UTF-8>
102102
103- \ Method Encoding.default_external returns the default external \Encoding:
103+ Method Encoding.default_external returns the default external \Encoding:
104104
105105 Encoding.default_external # => #<Encoding:UTF-8>
106106
107- \ Method Encoding.default_external= sets that value:
107+ Method Encoding.default_external= sets that value:
108108
109109 Encoding.default_external = 'US-ASCII' # => "US-ASCII"
110110 Encoding.default_external # => #<Encoding:US-ASCII>
111111
112- \ Method Encoding.default_internal returns the default internal \Encoding:
112+ Method Encoding.default_internal returns the default internal \Encoding:
113113
114114 Encoding.default_internal # => nil
115115
116- \ Method Encoding.default_internal= sets the default internal \Encoding:
116+ Method Encoding.default_internal= sets the default internal \Encoding:
117117
118118 Encoding.default_internal = 'US-ASCII' # => "US-ASCII"
119119 Encoding.default_internal # => #<Encoding:US-ASCII>
120120
121121=== Compatible Encodings
122122
123- \ Method Encoding.compatible? returns whether two given objects are encoding-compatible
123+ Method Encoding.compatible? returns whether two given objects are encoding-compatible
124124(that is, whether they can be concatenated);
125125returns the \Encoding of the concatenated string, or +nil+ if incompatible:
126126
@@ -248,7 +248,7 @@ For an \IO or \File object, the external encoding may be set by:
248248
249249For an \IO, \File, \ARGF, or \StringIO object, the external encoding may be set by:
250250
251- - \ Methods +set_encoding+ or (except for \ARGF) +set_encoding_by_bom+.
251+ - Methods +set_encoding+ or (except for \ARGF) +set_encoding_by_bom+.
252252
253253=== Internal \Encoding
254254
@@ -274,7 +274,7 @@ For an \IO or \File object, the internal encoding may be set by:
274274
275275For an \IO, \File, \ARGF, or \StringIO object, the internal encoding may be set by:
276276
277- - \ Method +set_encoding+.
277+ - Method +set_encoding+.
278278
279279== Script \Encoding
280280
0 commit comments