stub-zone:
  name: "<%= @name %>"
<% if @address -%>
<% Array(@address).each do |addr| -%>
<% if is_domain_name(addr) -%>
  stub-host: <%= addr %>
<% else -%>
  stub-addr: <%= addr %>
<% end -%>
<% end -%>
<% end -%>

stub-zone:
  name: "<%= @name %>"
<% if @address -%>
<% Array(@address).each do |addr| -%>
<% if scope.function_is_domain_name([addr]) -%>
  stub-host: <%= addr %>
<% else -%>
  stub-addr: <%= addr %>
<% end -%>
<% end -%>
<% end -%>

Call the scope function in ERB
Call the scope function in ERB

Without this change, the function does not parse correctly.
