RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Duck typing

Duck typing is about making an object suitable for a certain task based on its methods and properties rather than its type. It’s like this: if you see a dog (type) that quacks like a duck, then I will call that dog a duck (duck-typing). http://davidmles.com/blog/duck-typing/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in