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.
343
344
345
346
|
# File 'lib/ayadn/set.rb', line 343
def initialize
super
@category = 'scroll'
end
|
Instance Method Details
#date(value) ⇒ Object
358
359
360
361
362
|
# File 'lib/ayadn/set.rb', line 358
def date(value)
@input = 'date'
@output = Validators.boolean(value)
Settings.options[:scroll][:date] = @output
end
|
#spinner(value) ⇒ Object
364
365
366
367
368
|
# File 'lib/ayadn/set.rb', line 364
def spinner(value)
@input = 'spinner'
@output = Validators.boolean(value)
Settings.options[:scroll][:spinner] = @output
end
|
#timer(t) ⇒ Object
352
353
354
355
356
|
# File 'lib/ayadn/set.rb', line 352
def timer(t)
@input = 'timer'
@output = validate(t)
Settings.options[:scroll][:timer] = @output
end
|
#validate(t) ⇒ Object
348
349
350
|
# File 'lib/ayadn/set.rb', line 348
def validate(t)
Validators.timer(t)
end
|