# LibTmux::PaneSnapshot#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-panesnapshot-index/

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

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### A pane's index in its window

- Python: [`libtmux.Pane.index`](/en/py/latest/reference/libtmux-pane-index/) (property)
- Lua: [`libtmux.SnapshotPane.index`](/en/lua/latest/reference/libtmux-snapshotpane-index/) (attribute)
- Rust: [`pane.Pane.index`](/en/rs/latest/reference/pane-pane-index/) (method)
- Go: [`tmux.Pane.Index`](/en/go/latest/reference/tmux-pane-index/) (method)
- Java: [`io.github.libtmux.Pane.Pane.index`](/en/java/latest/reference/io-github-libtmux-pane-pane-index/) (method)
- C#: [`LibTmux.Pane.Index`](/en/csharp/latest/reference/libtmux-pane-index/) (property)
- C++: [`libtmux::Pane::index`](/en/cxx/latest/reference/libtmux-pane-index-56y3/) (method)
- Swift: [`Pane.index`](/en/swift/latest/reference/pane-index/) (property)
