What is duck typing and how does it pertain to Ruby?

Technology CommunityCategory: RubyWhat is duck typing and how does it pertain to Ruby?
VietMX Staff asked 3 years ago

That an object may be acted upon even if it isn’t the expected type as long as it looks and behaves like the expected object. This is a characteristic of Ruby because the lack of type checking of parameters makes this an effective programming technique.