TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Techniques for Duck Typing Ruby's Core Objects

12 pointsby sandalalmost 16 years ago

1 comment

aaronblohowiakalmost 16 years ago
Title is misleading. What I see presented in the article is a single technique, "implement the same interface." What I expected instead was to see methods for getting ruby core objects to present themselves as more complex objects or so on. In that case, I'd expect to see references to SimpleDelegate, Forwardable, duping the metaclass, extending the singleton class of the instantiated objects and so forth.
评论 #649895 未加载