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

Version Path
ftpd-0.5.0 features/step_definitions/client.rb
ftpd-0.4.0 features/step_definitions/client.rb
ftpd-0.3.2 features/step_definitions/client.rb
ftpd-0.3.1 features/step_definitions/client.rb
ftpd-0.2.2 features/step_definitions/client.rb
ftpd-0.2.1 features/step_definitions/client.rb
ftpd-0.2.0 features/step_definitions/client.rb
ftpd-0.1.1 features/step_definitions/client.rb
ftpd-0.1.0 features/step_definitions/client.rb
ftpd-0.0.1.pre features/step_definitions/client.rb