Class: Ayadn::SetScroll
Instance Attribute Summary
Attributes inherited from SetBase
#category, #input, #output
Instance Method Summary
collapse
Methods inherited from SetBase
#log, #save
Constructor Details
Returns a new instance of SetScroll.
392
393
394
395
|
# File 'lib/ayadn/set.rb', line 392
def initialize
super
@category = 'scroll'
end
|
Instance Method Details
#spinner(value) ⇒ Object
413
414
415
416
417
|
# File 'lib/ayadn/set.rb', line 413
def spinner(value)
@input = 'spinner'
@output = Validators.boolean(value)
Settings.options.scroll.spinner = @output
end
|
401
402
403
404
405
|
# File 'lib/ayadn/set.rb', line 401
def timer(t)
@input = 'timer'
@output = validate(t)
Settings.options.scroll.timer = @output
end
|
#validate(t) ⇒ Object
397
398
399
|
# File 'lib/ayadn/set.rb', line 397
def validate(t)
Validators.timer(t)
end
|