Nice post. But you shouldn't use any? to test if a collection is empty. To
see why try it on this array: [nil, false] and read the docs. Use empty? to
test if an array is empty.

On Apr 1, 2017 12:02 AM, "Leandro TK" <leandrotk...@gmail.com> wrote:

> Hello guys,
>
>
> As all of you, I think Ruby a beautiful programming language. And I wrote
> a *blog post
> <https://medium.com/the-renaissance-developer/idiomatic-ruby-1b5fa1445098>*
> about that.
>
>
> I call it *Idiomatic Ruby*
> <https://medium.com/the-renaissance-developer/idiomatic-ruby-1b5fa1445098>
>
>
> Any comment or advice will alwasy be welcome :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/rubyonrails-talk/9deec1e6-c3d9-4882-ad92-
> 9fda482f215e%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/9deec1e6-c3d9-4882-ad92-9fda482f215e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAK5aKabA8GLfuVi7gbO3RfnU1N4YS3BG27tPojpqt8FBQkAHhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to