Class: Cl::Ui::Base

Inherits:
Struct
  • Object
show all
Defined in:
lib/cl/ui.rb

Direct Known Subclasses

Pipe, Silent, Test, Tty

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optsObject

Returns the value of attribute opts


13
14
15
# File 'lib/cl/ui.rb', line 13

def opts
  @opts
end

#stdoutObject


16
17
18
# File 'lib/cl/ui.rb', line 16

def stdout
  @stdout ||= opts[:stdout] || $stdout
end

Instance Method Details

#puts(*str) ⇒ Object


20
21
22
# File 'lib/cl/ui.rb', line 20

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