Sha256: bc99eaec0651af7fa6e90ad1e2dd8e7bf307e90e857fbe15cc6a6df0c2391b93
Contents?: true
Size: 552 Bytes
Versions: 5
Compression:
Stored size: 552 Bytes
Contents
class PipeRpc::Request; end module PipeRpc class Client::Request < Request def initialize(*args) super # discard first three entries mentioning Client::Request#initialize, # Client::Request.new and Client#method_missing in stacktrace @stacktrace = Kernel.respond_to?(:caller) ? Kernel.caller(3).to_a : [] @result = Result.new(self) end attr_reader :stacktrace, :result def id=(id) raise 'id already set' if @id @id = id end def id @id or raise 'id not set' end end end
Version data entries
5 entries across 5 versions & 1 rubygems