Class: ClientCfg
Overview
The client side repository using JSON
Instance Attribute Summary
Attributes inherited from Config
#chichilku3_dir, #data
Instance Method Summary
collapse
Methods inherited from Config
#create_default_cfg, #initialize, #load, #save
Constructor Details
This class inherits a constructor from Config
Instance Method Details
#sanitize_data(data) ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/client/client_cfg.rb', line 9
def sanitize_data(data)
if data['username'].length > NAME_LEN
data['username'] = data['username'][0..NAME_LEN - 1]
@console.log "username to long chopped to '#{data['username']}'"
end
data
end
|