Method: Codebreaker::Database#save_to_db
- Defined in:
- lib/modules/uploader.rb
#save_to_db(player) ⇒ Object
8 9 10 |
# File 'lib/modules/uploader.rb', line 8 def save_to_db(player) File.open(PATH, 'a+') { |f| f.write player.to_yaml } end |