# LibTmux::WindowSnapshot#name

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

```
def name: () -> ::String
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

A window's name

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.name`](/en/py/latest/reference/libtmux-window-name/) (property) |
| Lua | [`libtmux.SnapshotWindow.name`](/en/lua/latest/reference/libtmux-snapshotwindow-name/) (attribute) |
| Elixir | [`LibTmux.Window.name`](/en/elixir/latest/reference/libtmux-window-name/) (property) |
| TypeScript | no accessor; the field is read from `Window.format`, tmux's own row |
| Rust | [`window.Window.name`](/en/rs/latest/reference/window-window-name/) (method) |
| Go | [`tmux.Window.Name`](/en/go/latest/reference/tmux-window-name/) (method) |
| Java | [`io.github.libtmux.Window.name`](/en/java/latest/reference/io-github-libtmux-window-window-name/) (method) |
| C# | [`LibTmux.Window.Name`](/en/csharp/latest/reference/libtmux-window-name/) (property) |
| C++ | [`libtmux::Window::name`](/en/cxx/latest/reference/libtmux-window-name-145z/) (method) |
| Swift | [`Window.name`](/en/swift/latest/reference/window-name/) (property) |

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