Class: Slices::Asset::Rename::Filesystem

Inherits:
Base
  • Object
show all
Defined in:
lib/slices/asset/rename.rb

Instance Attribute Summary

Attributes inherited from Base

#file, #new_file_name

Instance Method Summary collapse

Methods inherited from Base

#initialize, #run

Constructor Details

This class inherits a constructor from Slices::Asset::Rename::Base

Instance Method Details

#rename(style) ⇒ Object



38
39
40
41
# File 'lib/slices/asset/rename.rb', line 38

def rename(style)
  super
  File.rename(@old_path, @new_path)
end