module MapPrint::Validations::Size

Public Instance Methods

validate_size!(size, exception) click to toggle source
# File lib/map_print/validations/size.rb, line 4
def validate_size!(size, exception)
  raise exception.new('No width present') unless size && size[:width]
  raise exception.new('No height present') unless size[:height]
end