Skip to content

Commit

Permalink
Fix issue with OpenStruct in Ruby <= 2.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jun 10, 2023
1 parent 5691702 commit 609ec58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ebnf/writer.rb
Expand Up @@ -715,7 +715,7 @@ def format_isoebnf_range(string)
%q(<table class="grammar">
<tbody id="grammar-productions" class="<%= @format %>">
<% for rule in @rules %>
<tr<%= %{ id="grammar-#{rule.class}-#{rule.sym}"} unless %w(=/ |).include?(rule.assign) || rule.sym.nil?%>>
<tr<%= %{ id="grammar-#{rule[:class]}-#{rule.sym}"} unless %w(=/ |).include?(rule.assign) || rule.sym.nil?%>>
<% if rule.id %>
<td<%= " colspan=2" unless rule.sym %>><%= rule.id %></td>
<% end %>
Expand Down

0 comments on commit 609ec58

Please sign in to comment.