Class: Rvm2::Ui::Output::Fake::Element
- Inherits:
-
Object
- Object
- Rvm2::Ui::Output::Fake::Element
- Defined in:
- lib/plugins/rvm2/ui/output/fake.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
readonly
Returns the value of attribute list.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message, type = :log, parent = nil) ⇒ Element
constructor
A new instance of Element.
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(, type = :log, parent = nil) @message = @type = type @parent = parent @list = [] if type == :group end |
Instance Attribute Details
#list ⇒ Object (readonly)
Returns the value of attribute list.
9 10 11 |
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 9 def list @list end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
9 10 11 |
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 9 def @message end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
9 10 11 |
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 9 def parent @parent end |
#status ⇒ Object
Returns the value of attribute status.
10 11 12 |
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 10 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/plugins/rvm2/ui/output/fake.rb', line 9 def type @type end |