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
31 32 33 |
# File 'lib/ever_mid/ever_exp.rb', line 31 def id note.id end |
#new_dir(src_path) ⇒ Object
35 36 37 |
# File 'lib/ever_mid/ever_exp.rb', line 35 def new_dir src_path File.join src_path, EverMid::ImagesDir, id end |
#to_midsrc(src_path) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/ever_mid/ever_exp.rb', line 23 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 |