Class: Vli::UI::Silent

Inherits:
Interface show all
Defined in:
lib/vli/ui.rb

Overview

This is a UI implementation that does nothing.

Instance Attribute Summary

Attributes inherited from Interface

#resource

Instance Method Summary collapse

Methods inherited from Interface

#initialize

Constructor Details

This class inherits a constructor from Vli::UI::Interface

Instance Method Details

#ask(*args) ⇒ Object

Raises:

  • (Errors::UIExpectsTTY)


30
31
32
33
34
35
# File 'lib/vli/ui.rb', line 30

def ask(*args)
  super

  # Silent can't do this, obviously.
  raise Errors::UIExpectsTTY
end