# LibTmux::CommandResult#text

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267/gems/libtmux/lib/libtmux/process.rb#L28
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.3/reference/libtmux-commandresult-text/

```
def text: (?invalid: :strict | :replace) -> ::String
```

Behavior: Command evidence.

Behavior contract: Command evidence.

## Parameters

- `invalid` (`:strict | :replace`)

## Raises

- `ArgumentError`
