summaryrefslogtreecommitdiff
diff options
authorNobuyoshi Nakada <[email protected]>2025-05-19 22:49:22 +0900
committerNobuyoshi Nakada <[email protected]>2025-06-19 11:17:58 +0900
commit5a19914030efedc86ac4f63778330cfee5822128 (patch)
treef563e98ffc037b8ff8463b8cb731bbdbe310933b
parenta4c4a347b74e4151019e79610a799682b99e9ccd (diff)
[DOC] Fix indentation
RDoc markdown parser requires exact 4 spaces or tab as indentation. Also the first nested bullet list must be separated from the enclosing bullet list item by a blank line.
-rw-r--r--NEWS.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/NEWS.md b/NEWS.md
index be15c2e28a..183a2206e2 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -19,20 +19,20 @@ Note: We're only listing outstanding class updates.
* `Kernel#inspect` now checks for the existence of a `#instance_variables_to_inspect` method,
allowing control over which instance variables are displayed in the `#inspect` string:
- ```ruby
- class DatabaseConfig
- def initialize(host, user, password)
- @host = host
- @user = user
- @password = password
+ ```ruby
+ class DatabaseConfig
+ def initialize(host, user, password)
+ @host = host
+ @user = user
+ @password = password
+ end
+
+ private def instance_variables_to_inspect = [:@host, :@user]
end
- private def instance_variables_to_inspect = [:@host, :@user]
- end
-
- conf = DatabaseConfig.new("localhost", "root", "hunter2")
- conf.inspect #=> #<DatabaseConfig:0x0000000104def350 @host="localhost", @user="root">
- ```
+ conf = DatabaseConfig.new("localhost", "root", "hunter2")
+ conf.inspect #=> #<DatabaseConfig:0x0000000104def350 @host="localhost", @user="root">
+ ```
* Binding