Skip to content

Commit

Permalink
Reorganize practices around files out of the "Exceptions" section
Browse files Browse the repository at this point in the history
  • Loading branch information
dvandersluis committed Nov 26, 2024
1 parent c72e8dc commit ff3ce80
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2165,6 +2165,12 @@ rescue StandardError => e
end
----

=== Standard Exceptions [[standard-exceptions]]

Prefer the use of exceptions from the standard library over introducing new exception classes.

== Files

=== Reading from a file [[file-read]]

Use the convenience methods `File.read` or `File.binread` when only reading a file start to finish in a single operation.
Expand Down Expand Up @@ -2288,10 +2294,6 @@ end
FileUtils.rm_f(path)
----

=== Standard Exceptions [[standard-exceptions]]

Prefer the use of exceptions from the standard library over introducing new exception classes.

== Assignment & Comparison

=== Parallel Assignment [[parallel-assignment]]
Expand Down

0 comments on commit ff3ce80

Please sign in to comment.