Class: Renamespace::MoveSpecFile
- Inherits:
-
Object
- Object
- Renamespace::MoveSpecFile
- Defined in:
- lib/renamespace/move_spec_file.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(paths:) ⇒ MoveSpecFile
constructor
A new instance of MoveSpecFile.
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
#call ⇒ Object
11 12 13 |
# File 'lib/renamespace/move_spec_file.rb', line 11 def call move unless missing? || paths.same? end |