# LibTmux::WindowLinkSnapshot#session

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/snapshot.rb#L152
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-windowlinksnapshot-session/

```
def session: () -> ::LibTmux::SessionSnapshot
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

Find the session containing a window placement

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.session`](/en/py/latest/reference/libtmux-window-session/) (property) |
| Lua | [`libtmux.SnapshotWindowLink.session`](/en/lua/latest/reference/libtmux-snapshotwindowlink-session/) (attribute) |
| TypeScript | [`window.Window.session`](/en/ts/latest/reference/window-window-session/) (method) |
| Rust | [`window.Window.session`](/en/rs/latest/reference/window-window-session/) (method) |
| Go | [`tmux.Window.Session`](/en/go/latest/reference/tmux-window-session/) (method) |
| Java | [`io.github.libtmux.Window.session`](/en/java/latest/reference/io-github-libtmux-window-window-session/) (method) |
| Kotlin | [`io.github.libtmux.kotlin.Window.session`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-window-session/) (property) |
| Scala | [`io.github.libtmux.scaladsl.Window.session`](/en/scala/latest/reference/io-github-libtmux-scaladsl-window-session/) (method) |
| C# | [`LibTmux.Window.Session`](/en/csharp/latest/reference/libtmux-window-session/) (property) |
| C++ | [`libtmux::Window::session`](/en/cxx/latest/reference/libtmux-window-session/) (method) |
| Swift | a Window has no single parent; Snapshot.sessions(of:) lists every linking session |

No equivalent is recorded in PowerShell, Julia, Elixir or F#.
