Ruby Cold Cuts Part 1

181
-1

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
181
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ruby Cold Cuts Part 1

  1. 1. Friday, May 17, 13
  2. 2. Ruby Cold Cuts Friday, May 17, 13
  3. 3. Ruby Cold Cuts A Slice of Ruby Core & The Standard Library: Friday, May 17, 13
  4. 4. Ruby Cold Cuts A Slice of Ruby Core & The Standard Library: Enumerating Enumerable Friday, May 17, 13
  5. 5. Ruby Cold Cuts A Slice of Ruby Core & The Standard Library: Part I Enumerating Enumerable Friday, May 17, 13
  6. 6. Friday, May 17, 13
  7. 7. Friday, May 17, 13
  8. 8. Friday, May 17, 13
  9. 9. • Dynamically Typed • Interpreted • “Pure”- Object Oriented • Multi paradigm • Memory Managed • Geared for “developer happiness and productivity” Ruby Friday, May 17, 13
  10. 10. Friday, May 17, 13
  11. 11. Friday, May 17, 13
  12. 12. Enumerable Friday, May 17, 13
  13. 13. Friday, May 17, 13
  14. 14. Friday, May 17, 13
  15. 15. Friday, May 17, 13
  16. 16. Friday, May 17, 13
  17. 17. Friday, May 17, 13
  18. 18. Friday, May 17, 13
  19. 19. Friday, May 17, 13
  20. 20. module Enumerable class Enumerator != Friday, May 17, 13
  21. 21. Modules Friday, May 17, 13
  22. 22. Friday, May 17, 13
  23. 23. Friday, May 17, 13
  24. 24. Friday, May 17, 13
  25. 25. Enumerable Friday, May 17, 13
  26. 26. Use Enumerable Friday, May 17, 13
  27. 27. Where to find Enumerable methods? http://ruby-doc.org/core-2.0/Enumerable.html Friday, May 17, 13
  28. 28. What do we get with Enumerable? Friday, May 17, 13
  29. 29. What do we get with Enumerable? • all? • any? • chunk • collect • collect_concat • count • cycle • detect • drop • drop_while • each_cons • each_entry • each_slice • each_with_index • each_with_object • entries • find • find_all • find_index • first • flat_map • grep • group_by • include? • inject • map • max • max_by • member? • min • min_by • minmax • minmax_by • none? • one? • partition • reduce • reject • reverse_each • select • slice_before • sort • sort_by • take • take_while • to_a • to_set • zip Friday, May 17, 13
  30. 30. #each Friday, May 17, 13
  31. 31. #each_with_index Friday, May 17, 13
  32. 32. #map | #collect Friday, May 17, 13
  33. 33. #find | #detect Friday, May 17, 13
  34. 34. #select | #reject Friday, May 17, 13
  35. 35. #any? | #all? | #none? | #one? Friday, May 17, 13
  36. 36. #partition Friday, May 17, 13
  37. 37. #zip Friday, May 17, 13
  38. 38. #min | #max | #minmax Friday, May 17, 13
  39. 39. To Be Continued Friday, May 17, 13
  40. 40. Next Week on... • Create your own class that uses Enumerable • Arrays • Hashs • Sets • and More! Friday, May 17, 13
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×