Class: TTY::Link::Terminals::Abstract Abstract Private
- Inherits:
-
Object
- Object
- TTY::Link::Terminals::Abstract
- Defined in:
- lib/tty/link/terminals/abstract.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
This class is abstract.
Override #name? and #version? to implement terminal hyperlinks detection
Responsible for providing common terminal detection
Direct Known Subclasses
Alacritty, Contour, Domterm, Foot, Hyper, Iterm, Jediterm, Kitty, Konsole, Mintty, Rio, Tabby, Terminology, Vscode, Vte, Wezterm, Wt
Instance Method Summary collapse
-
#initialize(semantic_version, env) ⇒ Abstract
constructor
Create an Abstract instance.
-
#link? ⇒ Boolean
Detect a terminal hyperlink support.
Constructor Details
#initialize(semantic_version, env) ⇒ Abstract
Create an TTY::Link::Terminals::Abstract instance
64 65 66 67 |
# File 'lib/tty/link/terminals/abstract.rb', line 64 def initialize(semantic_version, env) @semantic_version = semantic_version @env = env end |
Instance Method Details
#link? ⇒ Boolean
Detect a terminal hyperlink support
78 79 80 |
# File 'lib/tty/link/terminals/abstract.rb', line 78 def link? name? && version? end |