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.
155 156 157 158 159 160 |
# File 'lib/ayadn/set.rb', line 155 def initialize Settings.load_config Settings.get_token Settings.init_config Logs.create_logger end |
Instance Method Details
#log(args) ⇒ Object
161 162 163 164 165 |
# File 'lib/ayadn/set.rb', line 161 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
166 167 168 |
# File 'lib/ayadn/set.rb', line 166 def save Settings.save_config end |
#timer(t) ⇒ Object
172 173 174 |
# File 'lib/ayadn/set.rb', line 172 def timer(t) Settings.[:scroll][:timer] = t end |
#validate(t) ⇒ Object
169 170 171 |
# File 'lib/ayadn/set.rb', line 169 def validate(t) Validators.timer(t) end |