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.
418
419
420
421
|
# File 'lib/ayadn/set.rb', line 418
def initialize
super
@category = 'scroll'
end
|
Instance Method Details
#date(value) ⇒ Object
433
434
435
436
437
|
# File 'lib/ayadn/set.rb', line 433
def date(value)
@input = 'date'
@output = Validators.boolean(value)
Settings.options[:scroll][:date] = @output
end
|
#spinner(value) ⇒ Object
439
440
441
442
443
|
# File 'lib/ayadn/set.rb', line 439
def spinner(value)
@input = 'spinner'
@output = Validators.boolean(value)
Settings.options[:scroll][:spinner] = @output
end
|
427
428
429
430
431
|
# File 'lib/ayadn/set.rb', line 427
def timer(t)
@input = 'timer'
@output = validate(t)
Settings.options[:scroll][:timer] = @output
end
|
#validate(t) ⇒ Object
423
424
425
|
# File 'lib/ayadn/set.rb', line 423
def validate(t)
Validators.timer(t)
end
|