File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2165,6 +2165,12 @@ rescue StandardError => e
2165
2165
end
2166
2166
----
2167
2167
2168
+ === Standard Exceptions [[standard-exceptions]]
2169
+
2170
+ Prefer the use of exceptions from the standard library over introducing new exception classes.
2171
+
2172
+ == Files
2173
+
2168
2174
=== Reading from a file [[file-read]]
2169
2175
2170
2176
Use the convenience methods `File.read` or `File.binread` when only reading a file start to finish in a single operation.
@@ -2288,10 +2294,6 @@ end
2288
2294
FileUtils.rm_f(path)
2289
2295
----
2290
2296
2291
- === Standard Exceptions [[standard-exceptions]]
2292
-
2293
- Prefer the use of exceptions from the standard library over introducing new exception classes.
2294
-
2295
2297
== Assignment & Comparison
2296
2298
2297
2299
=== Parallel Assignment [[parallel-assignment]]
You can’t perform that action at this time.
0 commit comments