# Class LittleGhost::Tools::Filesystem::ReplaceInFile

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Tools/Filesystem/ReplaceInFile.html

Replaces one unique text occurrence through a writable sandbox.

## Inheritance

`LittleGhost::Tools::Filesystem::ReplaceInFile < LittleGhost::Tool`

## Instance methods

<a id="method-i-call"></a>
### `#call`

```ruby
#call(input)
```

Replaces the one matching `old_text` occurrence at `path`.
