Module: Gem::Release::Context::Ui
- Defined in:
- lib/gem/release/context/ui.rb
Defined Under Namespace
Modules: Colors
Classes: Base, Pipe, Quiet, Tty
Class Method Summary
collapse
Class Method Details
.new(opts) ⇒ Object
6
7
8
9
10
11
|
# File 'lib/gem/release/context/ui.rb', line 6
def new(opts)
const = Quiet if opts[:quiet]
const ||= Tty if $stdout.tty?
const ||= Pipe
const.new(opts)
end
|