module OptionsValidator
Public Instance Methods
validate_options(provided, *allowed_keys)
click to toggle source
# File lib/columnist/options_validator.rb, line 2 def validate_options(provided, *allowed_keys) raise(ArgumentError, "Valid options: #{allowed_keys}") unless (provided.keys - allowed_keys).empty? end