class Kamaze::Project::Tools::Console
Provide access to a [console](en.wikipedia.org/wiki/System_console) having two outputs: “stdout“ and “stderr“
Attributes
stderr[W]
stdout[W]
Public Instance Methods
mutable_attributes()
click to toggle source
# File lib/kamaze/project/tools/console.rb, line 36 def mutable_attributes [:stdout, :stderr] end
setup()
click to toggle source
# File lib/kamaze/project/tools/console.rb, line 21 def setup @stdout ||= $stdout @stderr ||= $stderr end
stderr()
click to toggle source
@return [Output]
# File lib/kamaze/project/tools/console.rb, line 32 def stderr Output.new(@stderr) end
stdout()
click to toggle source
@return [Output]
# File lib/kamaze/project/tools/console.rb, line 27 def stdout Output.new(@stdout) end