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.

Passing Blocks in Ruby Without &block

41 pointsby mudgemeisterover 14 years ago

2 comments

3pt14159over 14 years ago
These are really cool and understanding how magic is implemented is great, but when you are searching for the "tell_ape" method for 10 mins only to realize that method_missing is doing the magic, it really is a bit of a piss off. If you are going to do these tricks please for the nonwizard ruby coders out there make it blatantly obvious in your README or comments or tests.
评论 #2185364 未加载
spellbootsover 14 years ago
Heh awesome! Oh btw, I have one for you: alias become="sudo ~/s -" (in .bashrc)