Simpler conditional block inclusion

This commit is contained in:
Michael Miller 2022-10-09 16:04:07 -06:00
parent 090c95b162
commit 8e83edcc35
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF
3 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ module Spectator::DSL
{{null_double_type_name}}.new(@stubs) {{null_double_type_name}}.new(@stubs)
end end
{% if block %}{{block.body}}{% end %} {{block.body if block}}
end end
{% begin %} {% begin %}

View file

@ -61,7 +61,7 @@ module Spectator
end end
{% end %} {% end %}
{% if block %}{{block.body}}{% end %} {{block.body if block}}
end end
end end

View file

@ -84,7 +84,7 @@ module Spectator
macro finished macro finished
stub_type {{mocked_type.id}} stub_type {{mocked_type.id}}
{% if block %}{{block.body}}{% end %} {{block.body if block}}
end end
end end
{% end %} {% end %}
@ -189,7 +189,7 @@ module Spectator
macro finished macro finished
stub_type {{type_name.id}} stub_type {{type_name.id}}
{% if block %}{{block.body}}{% end %} {{block.body if block}}
end end
end end
{% end %} {% end %}