diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-05-19 22:49:22 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-06-19 11:17:58 +0900 |
commit | 5a19914030efedc86ac4f63778330cfee5822128 (patch) | |
tree | f563e98ffc037b8ff8463b8cb731bbdbe310933b | |
parent | a4c4a347b74e4151019e79610a799682b99e9ccd (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.md | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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 |