class Object
Constants
- EXP_DIR
Public Instance Methods
exp()
click to toggle source
# File lib/exp.rb, line 5 def exp begin if not EXP_DIR print "EXP_DIR: " EXP_DIR = gets end print "export filename: " fname = gets f = open("#{EXP_DIR}/#{fname.strip}", "w") f.write(JSON.generate(self)) f.close puts "Success; \"#{fname}\" closed." rescue raise "error of some kind" end end