class Rvm2::Ui::Output::Fake

Attributes

current[R]
root[R]

Public Class Methods

new(rvm2_plugins) click to toggle source
# File lib/plugins/rvm2/ui/output/fake.rb, line 31
def initialize(rvm2_plugins)
  @rvm2_plugins = rvm2_plugins
  @root = Element.new(nil, :group, nil)
  @current = @root
end

Public Instance Methods

finish(status) click to toggle source
# File lib/plugins/rvm2/ui/output/fake.rb, line 43
def finish(status)
  @current.status = status
  @current = @current.parent
end
log(message, type = :log) click to toggle source
# File lib/plugins/rvm2/ui/output/fake.rb, line 48
def log(message, type = :log)
  @current.list << Element.new(message, type)
end
start(name) click to toggle source
# File lib/plugins/rvm2/ui/output/fake.rb, line 37
def start(name)
  created = Element.new(name, :group, @current)
  @current.list << created
  @current =  created
end
stderr() click to toggle source
# File lib/plugins/rvm2/ui/output/fake.rb, line 56
def stderr
  @stderr ||= StringElements.new(self, :stderr)
end
stdout() click to toggle source
# File lib/plugins/rvm2/ui/output/fake.rb, line 52
def stdout
  @stdout ||= StringElements.new(self, :stdout)
end