Class: Ayadn::SetScroll
- Inherits:
-
Object
- Object
- Ayadn::SetScroll
- Defined in:
- lib/ayadn/set.rb
Instance Method Summary collapse
-
#initialize ⇒ SetScroll
constructor
A new instance of SetScroll.
- #log(args) ⇒ Object
- #save ⇒ Object
- #timer(t) ⇒ Object
- #validate(t) ⇒ Object
Constructor Details
#initialize ⇒ SetScroll
Returns a new instance of SetScroll.
135 136 137 138 139 140 |
# File 'lib/ayadn/set.rb', line 135 def initialize Settings.load_config Settings.get_token Settings.init_config Logs.create_logger end |
Instance Method Details
#log(args) ⇒ Object
141 142 143 144 145 |
# File 'lib/ayadn/set.rb', line 141 def log(args) x = "New value for '#{args[0]}' in 'Scroll' => #{args[1]}" puts "\n#{x}\n".color(:cyan) Logs.rec.info x end |
#save ⇒ Object
146 147 148 |
# File 'lib/ayadn/set.rb', line 146 def save Settings.save_config end |
#timer(t) ⇒ Object
152 153 154 |
# File 'lib/ayadn/set.rb', line 152 def timer(t) Settings.[:scroll][:timer] = t end |
#validate(t) ⇒ Object
149 150 151 |
# File 'lib/ayadn/set.rb', line 149 def validate(t) Validators.timer(t) end |