# LibTmux::WindowLinkSnapshot#index

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

```
def index: () -> ::Integer
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### A window's index in its session

- Python: [`libtmux.Window.index`](/en/py/latest/reference/libtmux-window-index/) (property)
- Rust: [`window.Window.index`](/en/rs/latest/reference/window-window-index/) (method)
- Go: [`tmux.Window.Index`](/en/go/latest/reference/tmux-window-index/) (method)
- Java: [`io.github.libtmux.Window.Window.index`](/en/java/latest/reference/io-github-libtmux-window-window-index/) (method)
- C#: [`LibTmux.Window.Index`](/en/csharp/latest/reference/libtmux-window-index/) (property)
- C++: [`libtmux::Window::index`](/en/cxx/latest/reference/libtmux-window-index-1i4m/) (method)
