lambda{} want to have 0 arguments and raises ArgumentError.
proc{} doesn't.
This commit is contained in:
parent
66ce7eb209
commit
17f3768453
|
@ -19,8 +19,8 @@ class Select
|
|||
|
||||
def initialize timeout = 30
|
||||
@read, @write, @error = {}, {}, {}
|
||||
@read.default = @write.default = @error.default = lambda{}
|
||||
@timeout, @tevent, @exit, @exit_on_empty = timeout, lambda{}, false, true
|
||||
@read.default = @write.default = @error.default = proc{}
|
||||
@timeout, @tevent, @exit, @exit_on_empty = timeout, proc{}, false, true
|
||||
end
|
||||
|
||||
def timeout timeout = nil, &event
|
||||
|
|
Loading…
Reference in a new issue