# LibTmux::Window#hooks

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/operations.rb#L243
- **Public owner:** LibTmux::Entity#hooks
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-window-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)
