Class: Renamespace::MoveAndRenamespaceSourceFile
- Inherits:
-
Object
- Object
- Renamespace::MoveAndRenamespaceSourceFile
- Defined in:
- lib/renamespace/move_and_renamespace_source_file.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(paths:, no_superclass_prefixing:) ⇒ MoveAndRenamespaceSourceFile
constructor
A new instance of MoveAndRenamespaceSourceFile.
Constructor Details
#initialize(paths:, no_superclass_prefixing:) ⇒ MoveAndRenamespaceSourceFile
Returns a new instance of MoveAndRenamespaceSourceFile.
8 9 10 11 |
# File 'lib/renamespace/move_and_renamespace_source_file.rb', line 8 def initialize(paths:, no_superclass_prefixing:) @paths = paths @no_superclass_prefixing = no_superclass_prefixing end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 |
# File 'lib/renamespace/move_and_renamespace_source_file.rb', line 13 def call log_source_and_destination_namespaces write_new_file delete_old_file end |