README.adoc in refinements-7.15.0 vs README.adoc in refinements-7.15.1
- old
+ new
@@ -238,14 +238,14 @@
Answers new hash where every top-level missing key has the same default value.
[source,ruby]
----
example = Hash.with_default ""
-example[:a] # => ""
+example[:a] # => ""
example = Hash.with_default []
-example[:b] # => []
+example[:b] # => []
----
===== #deep_merge
Merges deeply nested hashes together without mutating itself.
@@ -469,11 +469,11 @@
Passes each hash value as a block argument for further processing.
[source,ruby]
----
example = {unit: "221B", street: "Baker Street", city: "London", country: "UK"}
-example.use { |unit, street| "#{unit} #{street}" } # => "221B Baker Street"
+example.use { |unit, street| "#{unit} #{street}" } # => "221B Baker Street"
----
==== IO
===== .void
@@ -586,10 +586,10 @@
Answers file extensions as an array.
[source,ruby]
----
-Pathname("example.txt.erb").extensions # => [".txt", ".erb"]
+Pathname("example.txt.erb").extensions # => [".txt", ".erb"]
----
===== #files
Answers all files or filtered files for current path.