Class: EverExp::Files
- Inherits:
-
Object
- Object
- EverExp::Files
- Defined in:
- lib/ever_mid/ever_exp.rb
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
32 33 34 |
# File 'lib/ever_mid/ever_exp.rb', line 32 def id note.id end |
#new_dir(src_path) ⇒ Object
36 37 38 |
# File 'lib/ever_mid/ever_exp.rb', line 36 def new_dir src_path File.join src_path, EverMid::ImagesDir, id end |
#to_midsrc(src_path) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/ever_mid/ever_exp.rb', line 24 def to_midsrc src_path new_location = new_dir src_path FileUtils.mkdir new_location each do |file| FileUtils.cp file.location, new_location end end |