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

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

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

### Whether this was the active pane when captured

- Python: [`libtmux.Pane.pane_active`](/en/py/latest/reference/libtmux-pane-pane_active/) (attribute)
- Lua: [`libtmux.SnapshotPane.active`](/en/lua/latest/reference/libtmux-snapshotpane-active/) (attribute)
- Rust: [`pane.Pane.is_active`](/en/rs/latest/reference/pane-pane-is_active/) (method)
- Go: [`tmux.Pane.Active`](/en/go/latest/reference/tmux-pane-active/) (method)
- Java: [`io.github.libtmux.Pane.Pane.active`](/en/java/latest/reference/io-github-libtmux-pane-pane-active/) (method)
- C++: [`libtmux::Pane::active`](/en/cxx/latest/reference/libtmux-pane-active-12uw/) (method)
- Swift: [`Pane.isActive`](/en/swift/latest/reference/pane-isactive/) (property)
