class Ayadn::SetScroll

Public Class Methods

new() click to toggle source
Calls superclass method Ayadn::SetBase::new
# File lib/ayadn/set.rb, line 392
def initialize
  super
  @category = 'scroll'
end

Public Instance Methods

date(value) click to toggle source
# File lib/ayadn/set.rb, line 407
def date(value)
  @input = 'date'
  @output = Validators.boolean(value)
  Settings.options.scroll.date = @output
end
spinner(value) click to toggle source
# File lib/ayadn/set.rb, line 413
def spinner(value)
  @input = 'spinner'
  @output = Validators.boolean(value)
  Settings.options.scroll.spinner = @output
end
timer(t) click to toggle source
# File lib/ayadn/set.rb, line 401
def timer(t)
  @input = 'timer'
  @output = validate(t)
  Settings.options.scroll.timer = @output
end
validate(t) click to toggle source
# File lib/ayadn/set.rb, line 397
def validate(t)
  Validators.timer(t)
end