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.
201 202 203 204 205 206 |
# File 'lib/ayadn/set.rb', line 201 def initialize Settings.load_config Settings.get_token Settings.init_config Logs.create_logger end |
Instance Method Details
#log(args) ⇒ Object
207 208 209 210 211 |
# File 'lib/ayadn/set.rb', line 207 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
212 213 214 |
# File 'lib/ayadn/set.rb', line 212 def save Settings.save_config end |
#timer(t) ⇒ Object
218 219 220 |
# File 'lib/ayadn/set.rb', line 218 def timer(t) Settings.[:scroll][:timer] = t end |
#validate(t) ⇒ Object
215 216 217 |
# File 'lib/ayadn/set.rb', line 215 def validate(t) Validators.timer(t) end |