# LibTmux::Pane#join

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/operations.rb#L340
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-pane-join/

tmux command: [`join-pane`](/en/tmux/latest/manual/join-pane/)

```
def join: (
  ::LibTmux::EntityRef,
  direction: :horizontal | :vertical,
  ?before: bool,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Entity mutation.

Behavior contract: Entity mutation.

## In other ports

### Move a pane into another window

- Python: [`libtmux.Pane.join`](/en/py/latest/reference/libtmux-pane-join/) (method)
- TypeScript: [`pane.Pane.joinTo`](/en/ts/latest/reference/pane-pane-jointo/) (method)
- Go: [`tmux.Pane.Join`](/en/go/latest/reference/tmux-pane-join/) (method)
- Java: [`io.github.libtmux.Pane.Pane.joinTo`](/en/java/latest/reference/io-github-libtmux-pane-pane-jointo/) (method)
- C#: [`LibTmux.Pane.JoinAsync`](/en/csharp/latest/reference/libtmux-pane-joinasync/) (method)
- C++: [`libtmux::Pane::join`](/en/cxx/latest/reference/libtmux-pane-join/) (method)
- Swift: [`Server.join(_:into:direction:size:)`](/en/swift/latest/reference/server-join(_-into-direction-size-)/) (method)
