#!/usr/bin/env ruby # frozen_string_literal: true require 'treetop' require_relative 'node' # Special rule for lists of images, styles, and scripts class ValueList < Node def to_html(context) list_items.elements.map do |e| case keyword.text_value when 'images' then "" when 'styles' then "" when 'scripts' then "" end end.join("\n") end end