Class: Ayadn::SetScroll

Inherits:
SetBase show all
Defined in:
lib/ayadn/set.rb

Instance Attribute Summary

Attributes inherited from SetBase

#category, #input, #output

Instance Method Summary collapse

Methods inherited from SetBase

#log, #save

Constructor Details

#initializeSetScroll

Returns a new instance of SetScroll.



303
304
305
306
# File 'lib/ayadn/set.rb', line 303

def initialize
  super
  @category = 'scroll'
end

Instance Method Details

#timer(t) ⇒ Object



312
313
314
315
316
# File 'lib/ayadn/set.rb', line 312

def timer(t)
  @input = 'timer'
  @output = validate(t)
  Settings.options[:scroll][:timer] = @output
end

#validate(t) ⇒ Object



308
309
310
# File 'lib/ayadn/set.rb', line 308

def validate(t)
  Validators.timer(t)
end