Class: Renamespace::MoveAndRenamespaceSourceFile

Inherits:
Object
  • Object
show all
Defined in:
lib/renamespace/move_and_renamespace_source_file.rb

Instance Method Summary collapse

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

#callObject



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