# LibTmux::WindowLinkSnapshot#active?

- **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-active-inob/

```
def active?: () -> bool
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### Whether this was the active window when captured

- Python: [`libtmux.Window.window_active`](/en/py/latest/reference/libtmux-window-window_active/) (attribute)
- Rust: [`window.Window.is_active`](/en/rs/latest/reference/window-window-is_active/) (method)
- Go: [`tmux.Window.Active`](/en/go/latest/reference/tmux-window-active/) (method)
- Java: [`io.github.libtmux.Window.Window.active`](/en/java/latest/reference/io-github-libtmux-window-window-active/) (method)
- C++: [`libtmux::Window::active`](/en/cxx/latest/reference/libtmux-window-active-ggh4/) (method)
