Class: Gem::Release::Context::Ui::Base

Inherits:
Struct
  • Object
show all
Defined in:
lib/gem/release/context/ui.rb

Direct Known Subclasses

Pipe, Quiet, Tty

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optsObject

Returns the value of attribute opts

Returns:

  • (Object)

    the current value of opts



14
15
16
# File 'lib/gem/release/context/ui.rb', line 14

def opts
  @opts
end

#stdoutObject



17
18
19
# File 'lib/gem/release/context/ui.rb', line 17

def stdout
  @stdout || $stdout
end

Instance Method Details

#puts(*str) ⇒ Object



21
22
23
# File 'lib/gem/release/context/ui.rb', line 21

def puts(*str)
  stdout.puts(*str)
end