Ruby: Blocks

posted in: Ruby, Software Engineering | 0

What are Blocks? Blocks in Ruby are chunks of code that are — almost — nothing but chunks of code. A block is not a method. It is not a proc or a lambda. And, despite the popular statement that … Continued

Object-Oriented Ruby: Polymorphism

posted in: OOAD, Ruby | 0

What is Polymorphism? Polymorphism is the ability to represent different sets of data and different behaviors with a common interface. Typically, this means two classes that have the same methods but different implementations of those methods. A good analogy is … Continued