Class: Optout::Validator::Required
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Instance Method Details
#validate!(opt) ⇒ Object
530 531 532 533 534 |
# File 'lib/optout.rb', line 530 def validate!(opt) if opt.empty? && option_required? raise OptionRequired, opt.key end end |