new(ary, sec=nil)
public
Creates a TupleEntry based on ary with an optional renewer or
expiry time sec.
A renewer must implement the renew method which returns a
Numeric, nil, or true to indicate when the
tuple has expired.
Show source
def initialize(ary, sec=nil)
@cancel = false
@expires = nil
@tuple = make_tuple(ary)
@renewer = nil
renew(sec)
end