Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use accessor methods for $stdin/out? #118

Open
chino opened this issue Jan 22, 2015 · 1 comment
Open

use accessor methods for $stdin/out? #118

chino opened this issue Jan 22, 2015 · 1 comment

Comments

@chino
Copy link

chino commented Jan 22, 2015

If accessor methods were added that simply return $stdin/out then anyone could easily be override those using various methods like Refinements and/or extended Classes?

Then hacky tricks like messing with $stdin globally wouldn't be needed.

For example see: http://www.simulacre.org/unblocking-readline-in-eventmachine

@chino
Copy link
Author

chino commented Jan 22, 2015

Maybe accessor methods wouldn't even be the right technique but it would be nice to somehow be able to easily override these without affecting $stdin/out globally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant