Class: Renamespace::MoveSpecFile

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

Instance Method Summary collapse

Constructor Details

#initialize(paths:) ⇒ MoveSpecFile

Returns a new instance of MoveSpecFile.



7
8
9
# File 'lib/renamespace/move_spec_file.rb', line 7

def initialize(paths:)
  @paths = paths
end

Instance Method Details

#callObject



11
12
13
# File 'lib/renamespace/move_spec_file.rb', line 11

def call
  move unless missing? || paths.same?
end