Hash documentation
Ruby-talk,
I’m looking at
https://ruby-doc.org/core-2.5.1/Hash.html
default_proc = proc_obj or nil
Questions:
(1) Shouldn’t there be a
h = Hash.new
at the top of the example?
(2) How do I offer suggestions for the documentation?
(3) Is there a more active forum or mailing list for Ruby?
Ralph Shnelvar
Hey Ralph, welcome!
1. A hash can be declared without Hash.new.. The {} make it a hash,
would make it an array.
my_hash = {"one" => 1, "two" => 2}
3. I usually go to IRC for faster feedback. Look on Freenode #ruby
Leam
···
On Sat, May 26, 2018 at 10:36 AM, Ralph Shnelvar <ralphs@dos32.com> wrote:
Ruby-talk,
I'm looking at
Class: Hash (Ruby 2.5.1)
default_proc = proc_obj or nil
Questions:
(1) Shouldn't there be a
h = Hash.new
at the top of the example?
(2) How do I offer suggestions for the documentation?
(3) Is there a more active forum or mailing list for Ruby?
(2) How do I offer suggestions for the documentation?
(3) Is there a more active forum or mailing list for Ruby?
There is bugs.ruby-lang.org where you can open the ticket (or even propose
a patch), and ruby-core mailing list (which also has notifications from
bugs.ruby-lang.org CC-ed there).
V.
···
2018-05-26 17:36 GMT+03:00 Ralph Shnelvar <ralphs@dos32.com>:
Ruby-talk,
I'm looking at
Class: Hash (Ruby 2.5.1)
default_proc = proc_obj or nil
Questions:
(1) Shouldn't there be a
h = Hash.new
at the top of the example?
(2) How do I offer suggestions for the documentation?
(3) Is there a more active forum or mailing list for Ruby?
Ralph Shnelvar
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Re: Hash documentation
Leam,
Thanks for responding.
There seems to be a missing instantiation of a hash at the beginning of the example.
So …
**(2) How do I offer suggestions for the documentation?
**Ralph
Saturday, May 26, 2018, 8:49:07 AM, you wrote:
Ruby-talk,
I’m looking at
**>> https://ruby-doc.org/core-2.5.1/Hash.html
**>> default_proc = proc_obj or nil
Questions:
(1) Shouldn’t there be a
h = Hash.new
at the top of the example?
(2) How do I offer suggestions for the documentation?
(3) Is there a more active forum or mailing list for Ruby?
Hey Ralph, welcome!
- A hash can be declared without Hash.new… The {} make it a hash,
would make it an array.
my_hash = {“one” => 1, “two” => 2}
- I usually go to IRC for faster feedback. Look on Freenode #ruby
Leam
Unsubscribe:
<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
**Ralph
···
**lh> On Sat, May 26, 2018 at 10:36 AM, Ralph Shnelvar <ralphs@dos32.com> wrote:
There's also Reddit - Dive into anything
Cheers
robert
···
On Sat, May 26, 2018 at 5:22 PM Victor Shepelev <zverok.offline@gmail.com> wrote:
> (2) How do I offer suggestions for the documentation?
> (3) Is there a more active forum or mailing list for Ruby?
There is bugs.ruby-lang.org where you can open the ticket (or even propose a patch), and ruby-core mailing list (which also has notifications from bugs.ruby-lang.org CC-ed there).
--
[guy, jim, charlie].each {|him| remember.him do |as, often| as.you_can
- without end}
http://blog.rubybestpractices.com/