<commit_before>#### {% title "Ruby w pigułce" %}

<blockquote>
 {%= image_tag "/images/in_a_nutshell.jpg", :alt => "[In a Nutshell]" %}
 <p>This may not be very scientific, but perhaps this is why Ruby is such a wonderful language.</p>
 <p class="author">[<a href="http://pjkh.com/articles/2009/11/13/ruby-in-a-nutshell">phil•ip
  hall•strom</a>]</p>
</blockquote>

Na Sigmie są zainstalowane *ruby-1.9.3-p374-railsexpress* oraz
*ruby-2.0.0-p0*:

* [Matz on Ruby 2.0 at Heroku's Waza](https://blog.heroku.com/archives/2013/3/6/matz_highlights_ruby_2_0_at_waza)

Dokumentacja online:

* [Ruby Core](http://www.ruby-doc.org/core/)
* [Ruby Standard Library](http://www.ruby-doc.org/stdlib/)
* [Ruby Doc](http://rdoc.info/) – dokumentacja gemów

Podręczniki do języka Ruby:

* [Why's (Poignant) Guide to Ruby](http://www.rubyinside.com/media/poignant-guide.pdf)
* [RubyMonk](http://rubymonk.com/) –
  an interactive platform that helps you master Ruby
* [Mr. Neighborly's Humble Little
  Ruby Book](http://www.humblelittlerubybook.com/book/html/index.html)
  \([pdf](http://www.humblelittlerubybook.com/book/hlrb.pdf)\)
* [Learn Ruby The Hard Way](http://ruby.learncodethehardway.org/)
* <NAME>.
  [The Bastards Book of Ruby](http://ruby.bastardsbook.com/) –
  a programming primer for counting and other unconventional tasks
* [Hyperpolyglot](http://hyperpolyglot.org/scripting) – nie tylko Ruby!
* [Introduction to Ruby](http://www.cs.auckland.ac.nz/references/ruby/doc_bundle/Tutorial/)

Screencasty:

* [A set of 17 must-watch videos on Ruby](http://www.tekniqal.com/)

Miejsca gdzie warto zajrzeć od czasu do czasu:

* [stackoverflow](http://stackoverflow.com/questions/tagged/ruby) –
  questions tagged with **ruby**
* [RVM](http://rvm.beginrescueend.com/) – Ruby Version Manager
* [Ruby Programming Language](http://rubylang.info/) –
  community driven web site, dedicated to helping
  both new and experienced Ruby developers
* [Rubyflow](http://rubyflow.com)

Różne:

* [Leveraging Ruby's Standard Library: Appendix B - Ruby Best Practices](http://oreilly.com/ruby/excerpts/ruby-best-practices/ruby-standard-library.html)
* [Learn Ruby](http://rubykoans.com/) – with the edgecase Ruby koans
* <NAME>.
  [My Giant List of Self Test Questions](http://shawnlindsey.com/blog/ruby-test-questions-the-great-big-ruby-test)
* <NAME>.
  [Everything you ever wanted to know about constant lookup in Ruby](http://cirw.in/blog/constant-lookup)


## Hasze

    :::ruby
    h = {1 => 2,3 => 4,5 => 6}
    h.keys
    h.values
    h[7] = 8
    h #  {5=>6, 1=>2, 7=>8, 3=>4}
    h.to_a


## Tablice

    :::ruby
    a = [1,2,3,4,5,6]
    a.object_id
    a.to_a.object_id
    a.to_s
    a.methods


## Enumerators

    :::ruby
    a = [2,4,6,8]
    a.each {|n| p n + 10}
    a.each_with_index {|n,i| p "#{i} -> #{n}" }
    a.map {|n| n + 10}
    a.find {|n| n > 4}
    a.inject {|acc,n| acc + n}
    a.class
    a.class.ancestors # [Array, Enumerable, Object, Kernel, BasicObject]


## Moduł Enumerable

    :::ruby<commit_msg>links to guides: arrary + hashes<commit_after>#### {% title "Ruby w pigułce" %}

<blockquote>
 {%= image_tag "/images/in_a_nutshell.jpg", :alt => "[In a Nutshell]" %}
 <p>This may not be very scientific, but perhaps this is why Ruby is such a wonderful language.</p>
 <p class="author">[<a href="http://pjkh.com/articles/2009/11/13/ruby-in-a-nutshell">phil•ip
  hall•strom</a>]</p>
</blockquote>

Na Sigmie są zainstalowane *ruby-1.9.3-p374-railsexpress* oraz
*ruby-2.0.0-p0*:

* [Matz on Ruby 2.0 at Heroku's Waza](https://blog.heroku.com/archives/2013/3/6/matz_highlights_ruby_2_0_at_waza)

Dokumentacja online:

* [Ruby Core](http://www.ruby-doc.org/core/)
* [Ruby Standard Library](http://www.ruby-doc.org/stdlib/)
* [Ruby Doc](http://rdoc.info/) – dokumentacja gemów

Podręczniki do języka Ruby:

* [Why's (Poignant) Guide to Ruby](http://www.rubyinside.com/media/poignant-guide.pdf)
* [RubyMonk](http://rubymonk.com/) –
  an interactive platform that helps you master Ruby
* [Mr. Neighborly's Humble Little
  Ruby Book](http://www.humblelittlerubybook.com/book/html/index.html)
  \([pdf](http://www.humblelittlerubybook.com/book/hlrb.pdf)\)
* [Learn Ruby The Hard Way](http://ruby.learncodethehardway.org/)
* <NAME>.
  [The Bastards Book of Ruby](http://ruby.bastardsbook.com/) –
  a programming primer for counting and other unconventional tasks
* [Hyperpolyglot](http://hyperpolyglot.org/scripting) – nie tylko Ruby!
* [Introduction to Ruby](http://www.cs.auckland.ac.nz/references/ruby/doc_bundle/Tutorial/)

Screencasty:

* [A set of 17 must-watch videos on Ruby](http://www.tekniqal.com/)

Miejsca gdzie warto zajrzeć od czasu do czasu:

* [stackoverflow](http://stackoverflow.com/questions/tagged/ruby) –
  questions tagged with **ruby**
* [RVM](http://rvm.beginrescueend.com/) – Ruby Version Manager
* [Ruby Programming Language](http://rubylang.info/) –
  community driven web site, dedicated to helping
  both new and experienced Ruby developers
* [Rubyflow](http://rubyflow.com)

Różne:

* [Leveraging Ruby's Standard Library: Appendix B - Ruby Best Practices](http://oreilly.com/ruby/excerpts/ruby-best-practices/ruby-standard-library.html)
* [Learn Ruby](http://rubykoans.com/) – with the edgecase Ruby koans
* <NAME>.
  [My Giant List of Self Test Questions](http://shawnlindsey.com/blog/ruby-test-questions-the-great-big-ruby-test)
* <NAME>.
  [Everything you ever wanted to know about constant lookup in Ruby](http://cirw.in/blog/constant-lookup)


## Tablice

    :::ruby
    a = [1,2,3,4,5,6]
    a.object_id
    a.to_a.object_id
    a.to_s
    a.methods

* A Guide to Ruby Collections,
  [Part I: Arrays](http://www.sitepoint.com/guide-ruby-collections-part-arrays/)


## Hasze

    :::ruby
    h = {1 => 2,3 => 4,5 => 6}
    h.keys
    h.values
    h[7] = 8
    h #  {5=>6, 1=>2, 7=>8, 3=>4}
    h.to_a

* A Guide to Ruby Collections,
  [Part II: Hashes, Sets, and Ranges](http://www.sitepoint.com/guide-ruby-collections-ii-hashes-sets-ranges/)


## Enumerators

    :::ruby
    a = [2,4,6,8]
    a.each {|n| p n + 10}
    a.each_with_index {|n,i| p "#{i} -> #{n}" }
    a.map {|n| n + 10}
    a.find {|n| n > 4}
    a.inject {|acc,n| acc + n}
    a.class
    a.class.ancestors # [Array, Enumerable, Object, Kernel, BasicObject]


## Moduł Enumerable

    :::ruby
{'fraction_non_alphanumeric': 0.16978736908917805, 'fraction_numerical': 0.019358933671850206, 'mean_word_length': 3.7426636568848757, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 45, 'https://': 2, 'lorem ipsum': 0, 'www.': 16, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2714769', 'n_tokens_mistral': 2604, 'n_tokens_neox': 2398, 'n_words': 542}