shevegen (Robert A. Heiler) wrote: ...I don't know myself either... Robert, I was only musing about a how a "literal" might be defined. My only point is that I think a definition is required, since the term is frequently used in d...CaryInVictoria (Cary Swoveland)
Documentation of "Literals" for v2.6.0 is given here: https://docs.ruby-lang.org/en/2.6.0/syntax/literals_rdoc.html. (I don't think it has been changed for some time.) It gives examples of literals but does not provide a definition. It i...CaryInVictoria (Cary Swoveland)
The documentation of these three methods fails to explain how they interact. For example: h = { a: [1,2,3] } h.dig(:a, 1) #=> 2 `Hash#dig` is used first: a = h.dig(:a) #=> [1,2,3] Then `Array#dig` is invoked: ...CaryInVictoria (Cary Swoveland)
`String#each_match` would have two forms: *each_match(pattern) { |match| block } → str* *each_match(pattern) → an_enumerator* The latter would be identical to the form *gsub(pattern) → enumerator* of [String#gsub](http://ruby-doc....CaryInVictoria (Cary Swoveland)
The v2.5.1 documentation for this method states, in part, "Sets the instance variable named by symbol to the given object, thereby frustrating the efforts of the class's author to attempt to provide proper encapsulation." The phrase begi...CaryInVictoria (Cary Swoveland)