Articles tagged with  duck-typing

Duck typing vs type safety in Ruby

November 02, 2016 by Piotr Solnica

Duck typing is one of the virtues of the Ruby language, it adds a lot of flexibility to the code, and allows us to use objects of different type in places where only specific methods are needed. Even though the idea behind duck typing may seem to be...