Sha256: 4b4141a20967da37e10a0c0b32f267d3d8552757f93367e6315a2e3ef66cddc3
Contents?: true
Size: 325 Bytes
Versions: 10
Compression:
Stored size: 325 Bytes
Contents
def client_variable_name(client_name) var = '@' + [ client_name, 'client', ].compact.map(&:strip).join('_') end def set_client(client_name, client) instance_variable_set client_variable_name(client_name), client end def client(client_name = nil) instance_variable_get(client_variable_name(client_name)) end
Version data entries
10 entries across 10 versions & 1 rubygems