class Ayadn::SetBlacklist

Public Class Methods

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

Public Instance Methods

method_missing(meth, options) click to toggle source
Calls superclass method
# File lib/ayadn/set.rb, line 539
def method_missing(meth, options)
  @input = meth.to_s
  @output = validate(options)
  case @input
  when 'active', 'activated'
    Settings.options.blacklist.active = @output
  else
    super
  end
end
validate(value) click to toggle source
# File lib/ayadn/set.rb, line 535
def validate(value)
  Validators.boolean(value)
end