class Utils::ProbeServer::LogWrapper

def []=(name, value)

Returns:
  • (String) - the updated environment variable value returned by

Parameters:
  • value (String) -- the value to assign to the environment variable
  • name (String) -- the environment variable key to set
def []=(name, value)
  name, value = name.to_s, value.to_s
  @server.output_message("Setting #{name}=#{value.inspect}.", type: :info)
  @object[name] = value
end

def initialize(server, object)

Parameters:
  • object (ENV) -- the environment object to be wrapped
  • server (Utils::ProbeServer) -- the probe server instance to be assigned
def initialize(server, object)
  @server, @object = server, object
end

def method_missing(*a, &b)

Returns:
  • (Object) - the result of the delegated method call on the

Parameters:
  • b (Proc) -- the block passed to the missing method
  • a (Array) -- the arguments passed to the missing method
def method_missing(*a, &b)
  @object.__send__(*a, &b)
end