def test if object.respond_to? "guagua" && object.respond_to? "walk" #object is almost a duck! endend
No comments:
Post a Comment