# LibTmux::GuardedBlock.new

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c8b839595d5a30e271e3f9be0d0fe811ddb11b7e/gems/libtmux/lib/libtmux/control.rb#L13
- **Page:** https://libtmux.org/en/ruby/v0.1.0/reference/libtmux-guardedblock-new/

```
def self.new: (
  guard: ::Array[::Integer],
  body: ::String,
  terminator: :end | :error,
  bytesize: ::Integer,
  opening: ::String,
  closing: ::String
) -> ::LibTmux::GuardedBlock
```

Behavior: Control evidence.

Behavior contract: Control evidence.

## Parameters

- `guard` (`::Array[::Integer]`)
- `body` (`::String`)
- `terminator` (`:end | :error`)
- `bytesize` (`::Integer`)
- `opening` (`::String`)
- `closing` (`::String`)
