class AdLint::Validation::TrueOrFalseValidator

Public Instance Methods

execute(attr_owner) click to toggle source
# File lib/adlint/util.rb, line 360
def execute(attr_owner)
  return false unless super
  case target_value(attr_owner)
  when TrueClass, FalseClass
    true
  else
    @errors.push("`#{qualified_attr_name(attr_owner)}' " +
                 "is not a boolean value.")
    false
  end
end