# LibTmux::WindowLinkSnapshot#index

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/snapshot.rb#L148
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/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)
