Skip to content

Instantly share code, notes, and snippets.

Created August 7, 2010 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/513100 to your computer and use it in GitHub Desktop.
Save anonymous/513100 to your computer and use it in GitHub Desktop.
<% classes.each do |current_class| -%>
<%= current_class %>
<% end -%>
----------------------------------------------------------------
<% classes.each do |current_class| -%>
<% if has_variable?(current_class + "::shorewall_rules") then -%>
<% scope.lookupvar(current_class + "::shorewall_rules").split(":") do |x| %>
<%= x %>
<% end -%>
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment