Class: Rvm2::Ui::Output::Fake::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/plugins/rvm2/ui/output/fake.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, type = :log, parent = nil) ⇒ Element

Returns a new instance of Element.



11
12
13
14
15
16
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 11

def initialize(message, type = :log, parent = nil)
  @message = message
  @type    = type
  @parent  = parent
  @list    = [] if type == :group
end

Instance Attribute Details

#listObject (readonly)

Returns the value of attribute list.



9
10
11
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 9

def list
  @list
end

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 9

def message
  @message
end

#parentObject (readonly)

Returns the value of attribute parent.



9
10
11
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 9

def parent
  @parent
end

#statusObject

Returns the value of attribute status.



10
11
12
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 10

def status
  @status
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 9

def type
  @type
end