class PrelandsRails::CreateSimpleSource::ValidateZipContent::ValidateHtml
Валидирует все html файлы.
Constants
- CONTINUE_ID
Public Instance Methods
act()
click to toggle source
# File lib/prelands_rails/create_simple_source/validate_zip_content/validate_html.rb, line 25 def act errors = incoming_html_files.map do |key, content| content = Html.new(content, CONTINUE_ID) next if content.valid? [key, content.errors] end.compact.to_h fail! errors: errors if errors.any? end