Class: Starlined::Configuration
- Inherits:
-
Object
- Object
- Starlined::Configuration
- Defined in:
- lib/starlined/configuration.rb
Instance Attribute Summary collapse
-
#clear_line_string ⇒ Object
Returns the value of attribute clear_line_string.
-
#extra_rjust ⇒ Object
Returns the value of attribute extra_rjust.
-
#msg_ljust ⇒ Object
Returns the value of attribute msg_ljust.
-
#sleep_time ⇒ Object
Returns the value of attribute sleep_time.
-
#stars_range ⇒ Object
Returns the value of attribute stars_range.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#vrbose ⇒ Object
Returns the value of attribute vrbose.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_string ⇒ Object
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_rjust ⇒ Object
Returns the value of attribute extra_rjust.
5 6 7 |
# File 'lib/starlined/configuration.rb', line 5 def extra_rjust @extra_rjust end |
#msg_ljust ⇒ Object
Returns the value of attribute msg_ljust.
5 6 7 |
# File 'lib/starlined/configuration.rb', line 5 def msg_ljust @msg_ljust end |
#sleep_time ⇒ Object
Returns the value of attribute sleep_time.
5 6 7 |
# File 'lib/starlined/configuration.rb', line 5 def sleep_time @sleep_time end |
#stars_range ⇒ Object
Returns the value of attribute stars_range.
5 6 7 |
# File 'lib/starlined/configuration.rb', line 5 def stars_range @stars_range end |
#symbol ⇒ Object
Returns the value of attribute symbol.
5 6 7 |
# File 'lib/starlined/configuration.rb', line 5 def symbol @symbol end |
#vrbose ⇒ Object
Returns the value of attribute vrbose.
5 6 7 |
# File 'lib/starlined/configuration.rb', line 5 def vrbose @vrbose end |