diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-11-14 15:39:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-11-14 15:56:58 +0900 |
commit | 19a7a7660c34c862689f99b4f9b0447be92cbffb (patch) | |
tree | 679adb8ee56d4f9d23e2f0199b2c9cb6da73d98c /doc/implicit_conversion.rdoc | |
parent | caa9881fde884238e38c2decea97ecfca559280c (diff) |
[DOC] Adjust heading levels
So that the first headings would be the top-most headings.
Diffstat (limited to 'doc/implicit_conversion.rdoc')
-rw-r--r-- | doc/implicit_conversion.rdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/implicit_conversion.rdoc b/doc/implicit_conversion.rdoc index ba15fa4bf4..e244096125 100644 --- a/doc/implicit_conversion.rdoc +++ b/doc/implicit_conversion.rdoc @@ -1,4 +1,4 @@ -== Implicit Conversions += Implicit Conversions Some Ruby methods accept one or more objects that can be either: @@ -15,7 +15,7 @@ a specific conversion method: * Integer: +to_int+ * String: +to_str+ -=== Array-Convertible Objects +== Array-Convertible Objects An <i>Array-convertible object</i> is an object that: @@ -69,7 +69,7 @@ This class is not Array-convertible (method +to_ary+ returns non-Array): # Raises TypeError (can't convert NotArrayConvertible to Array (NotArrayConvertible#to_ary gives Symbol)) a.replace(NotArrayConvertible.new) -=== Hash-Convertible Objects +== Hash-Convertible Objects A <i>Hash-convertible object</i> is an object that: @@ -123,7 +123,7 @@ This class is not Hash-convertible (method +to_hash+ returns non-Hash): # Raises TypeError (can't convert NotHashConvertible to Hash (ToHashReturnsNonHash#to_hash gives Symbol)) h.merge(NotHashConvertible.new) -=== Integer-Convertible Objects +== Integer-Convertible Objects An <i>Integer-convertible object</i> is an object that: @@ -171,7 +171,7 @@ This class is not Integer-convertible (method +to_int+ returns non-Integer): # Raises TypeError (can't convert NotIntegerConvertible to Integer (NotIntegerConvertible#to_int gives Symbol)) Array.new(NotIntegerConvertible.new) -=== String-Convertible Objects +== String-Convertible Objects A <i>String-convertible object</i> is an object that: * Has instance method +to_str+. |