This Gem::StreamUI subclass records input and output to StringIO for retrieval during tests.
# File lib/rubygems/mock_gem_ui.rb, line 33 33: def initialize(input = "") 34: ins = StringIO.new input 35: outs = StringIO.new 36: errs = StringIO.new 37: 38: ins.extend TTY 39: outs.extend TTY 40: errs.extend TTY 41: 42: super ins, outs, errs, true 43: 44: @terminated = false 45: end
# File lib/rubygems/mock_gem_ui.rb, line 55 55: def error 56: @errs.string 57: end
# File lib/rubygems/mock_gem_ui.rb, line 47 47: def input 48: @ins.string 49: end
# File lib/rubygems/mock_gem_ui.rb, line 51 51: def output 52: @outs.string 53: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.