Method: CliApplication::Stat#save

Defined in:
lib/cli_application/stat.rb

#saveObject



89
90
91
92
93
# File 'lib/cli_application/stat.rb', line 89

def save
  @prev = load_stat
  update_stat
  File.open(@stat_filename, 'w') { |f| f.write @prev.to_yaml }
end