Class: Capistrano::Doctor::OutputHelpers::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/doctor/output_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRow

Returns a new instance of Row



12
13
14
# File 'lib/capistrano/doctor/output_helpers.rb', line 12

def initialize
  @values = []
end

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color



9
10
11
# File 'lib/capistrano/doctor/output_helpers.rb', line 9

def color
  @color
end

#valuesObject (readonly)

Returns the value of attribute values



10
11
12
# File 'lib/capistrano/doctor/output_helpers.rb', line 10

def values
  @values
end

Instance Method Details

#<<(value) ⇒ Object



16
17
18
# File 'lib/capistrano/doctor/output_helpers.rb', line 16

def <<(value)
  values << value
end

#yellowObject



20
21
22
# File 'lib/capistrano/doctor/output_helpers.rb', line 20

def yellow
  @color = :yellow
end