# Hash documentation

**URL:** <https://rubytalk.org/t/hash-documentation/74632>\
**Category:** ruby-talk\
**Created:** [26 May 2018 14:36 UTC](https://rubytalk.org/t/hash-documentation/74632 "2018-05-26T14:36:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ralph\_Shnelvar](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Ralph\_Shnelvar](https://rubytalk.org/u/Ralph_Shnelvar)\
**Post date:** [26 May 2018 14:36 UTC](https://rubytalk.org/t/hash-documentation/74632/1 "2018-05-26T14:36:52Z")

</div>

Hash documentation  
Ruby-talk,

I’m looking at

[https://ruby-doc.org/core-2.5.1/Hash.html](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

---

<div class="post-metadata">

**Author:** ![Leam\_Hall](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/leam_hall/32/1841_2.png) [@Leam\_Hall](https://rubytalk.org/u/Leam_Hall)\
**Post date:** [26 May 2018 14:49 UTC](https://rubytalk.org/t/hash-documentation/74632/2 "2018-05-26T14:49:07Z")

</div>

Hey Ralph, welcome!

1. A hash can be declared without Hash.new.. The {} make it a hash,   
would make it an array.  
&nbsp;&nbsp;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)](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?

---

<div class="post-metadata">

**Author:** ![Victor\_Shepelev](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/victor_shepelev/32/1899_2.png) [@Victor\_Shepelev](https://rubytalk.org/u/Victor_Shepelev)\
**Post date:** [26 May 2018 15:21 UTC](https://rubytalk.org/t/hash-documentation/74632/3 "2018-05-26T15:21:49Z")

</div>

> (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)](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
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Ralph\_Shnelvar](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Ralph\_Shnelvar](https://rubytalk.org/u/Ralph_Shnelvar)\
**Post date:** [26 May 2018 15:20 UTC](https://rubytalk.org/t/hash-documentation/74632/4 "2018-05-26T15:20:42Z")

</div>

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](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!

> 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}

> 1. I usually go to IRC for faster feedback. Look on Freenode #ruby

> Leam

> Unsubscribe:

> \<**[mailto:ruby-talk-request@ruby-lang.org](mailto:ruby-talk-request@ruby-lang.org)?subject=unsubscribe**\>

> \<**[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk](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](mailto:ralphs@dos32.com)**\> wrote:

---

<div class="post-metadata">

**Author:** ![Robert\_K1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/robert_k1/32/1830_2.png) [@Robert\_K1](https://rubytalk.org/u/Robert_K1)\
**Post date:** [1 June 2018 09:17 UTC](https://rubytalk.org/t/hash-documentation/74632/5 "2018-06-01T09:17:32Z")

</div>

There's also [Reddit - Dive into anything](https://www.reddit.com/r/ruby/)

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/](http://blog.rubybestpractices.com/)
