Ruby Cold Cuts Part 1

  • 112 views
Uploaded on

 

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
112
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Friday, May 17, 13
  • 2. Ruby Cold Cuts Friday, May 17, 13
  • 3. Ruby Cold Cuts A Slice of Ruby Core & The Standard Library: Friday, May 17, 13
  • 4. Ruby Cold Cuts A Slice of Ruby Core & The Standard Library: Enumerating Enumerable Friday, May 17, 13
  • 5. Ruby Cold Cuts A Slice of Ruby Core & The Standard Library: Part I Enumerating Enumerable Friday, May 17, 13
  • 6. Friday, May 17, 13
  • 7. Friday, May 17, 13
  • 8. Friday, May 17, 13
  • 9. • Dynamically Typed • Interpreted • “Pure”- Object Oriented • Multi paradigm • Memory Managed • Geared for “developer happiness and productivity” Ruby Friday, May 17, 13
  • 10. Friday, May 17, 13
  • 11. Friday, May 17, 13
  • 12. Enumerable Friday, May 17, 13
  • 13. Friday, May 17, 13
  • 14. Friday, May 17, 13
  • 15. Friday, May 17, 13
  • 16. Friday, May 17, 13
  • 17. Friday, May 17, 13
  • 18. Friday, May 17, 13
  • 19. Friday, May 17, 13
  • 20. module Enumerable class Enumerator != Friday, May 17, 13
  • 21. Modules Friday, May 17, 13
  • 22. Friday, May 17, 13
  • 23. Friday, May 17, 13
  • 24. Friday, May 17, 13
  • 25. Enumerable Friday, May 17, 13
  • 26. Use Enumerable Friday, May 17, 13
  • 27. Where to find Enumerable methods? http://ruby-doc.org/core-2.0/Enumerable.html Friday, May 17, 13
  • 28. What do we get with Enumerable? Friday, May 17, 13
  • 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. #each Friday, May 17, 13
  • 31. #each_with_index Friday, May 17, 13
  • 32. #map | #collect Friday, May 17, 13
  • 33. #find | #detect Friday, May 17, 13
  • 34. #select | #reject Friday, May 17, 13
  • 35. #any? | #all? | #none? | #one? Friday, May 17, 13
  • 36. #partition Friday, May 17, 13
  • 37. #zip Friday, May 17, 13
  • 38. #min | #max | #minmax Friday, May 17, 13
  • 39. To Be Continued Friday, May 17, 13
  • 40. Next Week on... • Create your own class that uses Enumerable • Arrays • Hashs • Sets • and More! Friday, May 17, 13