Each Method

Intro to Ruby - 04 - Flow Control - Michael Koby, CodeCasts.tv
Did this clip help you learn about Each Method ?
    Jump to a Concept:
  • Flow Control - 00:16
  • If Statement - 00:33
  • Else Statement - 02:55
  • While Loops - 05:21
  • Each Method - 07:16

04:14 - If you find yourself chaining many "if" and "else" statements together. Look into Case Statements.

(Go To Link)

05:21 - While Loops are not popular among Rubyists and should generally be avoided. Instead, use Enumerable Methods, such as "each" or "collect".

View Related Concepts

Our Philosophy

TeachingTree is an open platform that lets anybody organize educational content. Our goal is for students to quickly access the exact clips they need in order to learn individual concepts. Everyone is encouraged to help by adding videos or tagging concepts. Read our about page for more info.

Talk To Us

If you have any suggestions for how to make the TeachingTree better, questions about how to use the site, or just want to chat, email whatsup@teachingtree.co and we'll get back to you. We're always happy to talk.