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.



392
393
394
395
# File 'lib/ayadn/set.rb', line 392

def initialize
  super
  @category = 'scroll'
end

Instance Method Details

#date(value) ⇒ Object



407
408
409
410
411
# File 'lib/ayadn/set.rb', line 407

def date(value)
  @input = 'date'
  @output = Validators.boolean(value)
  Settings.options.scroll.date = @output
end

#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

#timer(t) ⇒ Object



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