class Ayadn::SetChannels
Public Class Methods
new()
click to toggle source
Calls superclass method
Ayadn::SetBase::new
# File lib/ayadn/set.rb, line 506 def initialize super @category = 'channels' end
Public Instance Methods
method_missing(meth, options)
click to toggle source
Calls superclass method
# File lib/ayadn/set.rb, line 515 def method_missing(meth, options) @input = meth.to_s @output = validate(options) case @input when 'links' Settings.options.channels.links = @output else super end end
validate(value)
click to toggle source
# File lib/ayadn/set.rb, line 511 def validate(value) Validators.boolean(value) end