Method: Bento::Validators::Base#validate_type

Defined in:
lib/bento/core/validators/base.rb

#validate_type(type) ⇒ Object

Raises:


9
10
11
# File 'lib/bento/core/validators/base.rb', line 9

def validate_type(type)
  raise ArgumentError, 'Type is required' if type.nil? || type.empty?
end