Sha256: 4c53e4b4c7b594a3d1a6e337ea4e18022c3965d088e3b137aa1538a21529ea53
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
class SSDB::Future < ::BasicObject def initialize(command) @command = command end def inspect "<SSDB::Future #{@command.inspect}>" end def value=(value) @value = value end def value unless defined?(@value) ::Kernel.raise ::SSDB::FutureNotReady, "Value of #{@command.inspect} is not ready" end @value end def instance_of?(klass) klass == ::SSDB::Future end def class ::SSDB::Future end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ssdb-0.1.0 | lib/ssdb/future.rb |