diff options
| author | Tomoyuki Sahara <[email protected]> | 2017-02-08 18:31:50 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2017-02-08 18:31:50 +0900 |
| commit | caab1c203cc996c521fc7115aab0991e1e53e05c (patch) | |
| tree | 34c175c609d8650650cfd2c290de6fbd3e042fc0 /src | |
| parent | 69623078a86b45617a6fdbe0238c147e280ad9db (diff) | |
| download | mruby-caab1c203cc996c521fc7115aab0991e1e53e05c.tar.gz mruby-caab1c203cc996c521fc7115aab0991e1e53e05c.zip | |
define IO#hash to override Enumerable#hash. fixes #73.
Current implementation of Enumerable#hash calls #each to collect
hash values of enumerated objects (then calculates the hash value
of the Enumerable object). But IO#each is a method to read lines.
It is not expected that IO#hash reads all lines from the IO object.
Or even worse, program waits for the IO object to be readable if
it is a socket or something cannot be read immediately.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
