# LibTmux::Window#hooks

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267/gems/libtmux/lib/libtmux/operations.rb#L243
- **Public owner:** LibTmux::Entity#hooks
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.3/reference/libtmux-window-hooks/

tmux catalog: [Hooks](/en/tmux/latest/catalog/hooks/)

```
def hooks: () -> ::LibTmux::Hooks
```

Behavior: Options and hooks.

Behavior contract: Options and hooks.

## In other ports

### Read a window's hooks

- Python: [`libtmux.Window.show_hooks`](/en/py/latest/reference/libtmux-window-show_hooks/) (method)
- Lua: [`libtmux.Window:list_hooks`](/en/lua/latest/reference/libtmux-window-list_hooks/) (method)
- TypeScript: [`window.Window.showHooks`](/en/ts/latest/reference/window-window-showhooks/) (method)
- Go: [`tmux.Window.Hooks`](/en/go/latest/reference/tmux-window-hooks/) (method)
- Java: [`io.github.libtmux.Window.Window.hooks`](/en/java/latest/reference/io-github-libtmux-window-window-hooks/) (method)
- C#: [`LibTmux.Window.Hooks`](/en/csharp/latest/reference/libtmux-window-hooks/) (property)
- Swift: [`Server.hooks(_:)`](/en/swift/latest/reference/server-hooks(_-)/) (method)
