Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/elasticsearch/extensions/test/cluster.rb
Instance Method Summary collapse
-
#ansi(*args) ⇒ Object
Redefine the ANSI method: do not print ANSI when not running in the terminal.
Instance Method Details
#ansi(*args) ⇒ Object
Redefine the ANSI method: do not print ANSI when not running in the terminal
33 34 35 |
# File 'lib/elasticsearch/extensions/test/cluster.rb', line 33 def ansi(*args) STDOUT.tty? ? ANSI.ansi(self, *args) : self end |