# LibTmux::Endpoint

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/endpoint.rb#L56
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-endpoint-s6cs/

Executable and socket selection. Construction starts no clients.

{#initialize Endpoint.new} takes a `socket_path:` or a `socket_name:`.
With neither, it picks the socket as tmux does when it is given none, and
`environment:` (the process environment by default) decides which: the
path in `LIBTMUX_SOCKET_PATH`, else the name in `LIBTMUX_SOCKET`, else the
socket `TMUX` names when run inside tmux, else tmux's `default` socket. A
variable that is empty counts as unset, and a socket given as an argument
ignores the variables. {.from_env} skips the `LIBTMUX_*` variables.

## Members

### Other members

- [`==`](/en/ruby/v0.1.1/reference/libtmux-endpoint-gh1e/) (method): Behavior: Endpoints.
- [`eql?`](/en/ruby/v0.1.1/reference/libtmux-endpoint-eql/) (method): Behavior: Endpoints.
- [`executable`](/en/ruby/v0.1.1/reference/libtmux-endpoint-executable/) (method): Returns the value of attribute executable.
- [`from_env`](/en/ruby/v0.1.1/reference/libtmux-endpoint-from_env/) (method): The socket of the tmux server this process runs inside, else tmux's
`default` socket. It ignores `LIBTMUX_SOCKET_PATH` and `LIBTMUX_SOCKET`.
- [`hash`](/en/ruby/v0.1.1/reference/libtmux-endpoint-hash/) (method): Behavior: Endpoints.
- [`inspect`](/en/ruby/v0.1.1/reference/libtmux-endpoint-inspect/) (method): Behavior: Endpoints.
- [`new`](/en/ruby/v0.1.1/reference/libtmux-endpoint-new/) (method): Behavior: Endpoints.
- [`socket_path`](/en/ruby/v0.1.1/reference/libtmux-endpoint-socket_path/) (method): Returns the value of attribute socket_path.
