{#- Ruby visitor method template

   Context variables:
   - method_name: visitor method name
   - params: parameter list
   - action_type: "skip", "continue", "preserve_html", "custom", "custom_template"
   - action_value: escaped string value (for custom)
   - action_template: escaped template string (for custom_template)
#}
  def {{ method_name }}({{ params }})
{% if action_type == "skip" %}
    'Skip'
{% elif action_type == "continue" %}
    'Continue'
{% elif action_type == "preserve_html" %}
    'PreserveHtml'
{% elif action_type == "custom" %}
    { Custom: {{ action_value }} }
{% elif action_type == "custom_template" %}
{% if return_form == "bare_string" %}
    {{ action_value }}
{% else %}
    { Custom: {{ action_value }} }
{% endif %}
{% endif %}
  end
