mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Formatting
This commit is contained in:
parent
60795a371d
commit
99a9d7960a
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ module Spectator::DSL
|
||||||
# This is intended to be used to convert a description from the spec DSL to `ExampleNode#name`.
|
# This is intended to be used to convert a description from the spec DSL to `ExampleNode#name`.
|
||||||
private macro _spectator_example_name(what)
|
private macro _spectator_example_name(what)
|
||||||
{% if what.is_a?(StringLiteral) ||
|
{% if what.is_a?(StringLiteral) ||
|
||||||
what.is_a?(StringInterpolation) ||
|
what.is_a?(StringInterpolation) ||
|
||||||
what.is_a?(NilLiteral) %}
|
what.is_a?(NilLiteral) %}
|
||||||
{{what}}
|
{{what}}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{what.stringify}}
|
{{what.stringify}}
|
||||||
|
|
Loading…
Reference in a new issue