Class: Starlined::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/starlined/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
16
# File 'lib/starlined/configuration.rb', line 8

def initialize
  @sleep_time = 0.75
  @msg_ljust = 30
  @extra_rjust = 8
  @stars_range = (0..5).to_a
  @vrbose = false
  @clear_line_string = "\33[2K"
  @symbol = '*'
end

Instance Attribute Details

#clear_line_stringObject

Returns the value of attribute clear_line_string.



5
6
7
# File 'lib/starlined/configuration.rb', line 5

def clear_line_string
  @clear_line_string
end

#extra_rjustObject

Returns the value of attribute extra_rjust.



5
6
7
# File 'lib/starlined/configuration.rb', line 5

def extra_rjust
  @extra_rjust
end

#msg_ljustObject

Returns the value of attribute msg_ljust.



5
6
7
# File 'lib/starlined/configuration.rb', line 5

def msg_ljust
  @msg_ljust
end

#sleep_timeObject

Returns the value of attribute sleep_time.



5
6
7
# File 'lib/starlined/configuration.rb', line 5

def sleep_time
  @sleep_time
end

#stars_rangeObject

Returns the value of attribute stars_range.



5
6
7
# File 'lib/starlined/configuration.rb', line 5

def stars_range
  @stars_range
end

#symbolObject

Returns the value of attribute symbol.



5
6
7
# File 'lib/starlined/configuration.rb', line 5

def symbol
  @symbol
end

#vrboseObject

Returns the value of attribute vrbose.



5
6
7
# File 'lib/starlined/configuration.rb', line 5

def vrbose
  @vrbose
end