Get rid of ugly nil
This commit is contained in:
parent
871bc93220
commit
1a948f1d9c
@ -50,7 +50,7 @@ Squib::Deck.new(cards: data.nrows) do
|
|||||||
|
|
||||||
rect layout: :description
|
rect layout: :description
|
||||||
text layout: :description, str: data.effect.zip(data.blurb).map { |e, b|
|
text layout: :description, str: data.effect.zip(data.blurb).map { |e, b|
|
||||||
"#{e}#{b ? "\n<i>#{b}</i>" : nil}"
|
"#{e}#{if b then "\n<i>#{b}</i>" end}"
|
||||||
} do |embed|
|
} do |embed|
|
||||||
embed.svg key: '{A}', width: 32, height: 32, data: Icons::AUDIENCE
|
embed.svg key: '{A}', width: 32, height: 32, data: Icons::AUDIENCE
|
||||||
embed.svg key: '{l}', width: 32, height: 32, data: Icons::LOVE
|
embed.svg key: '{l}', width: 32, height: 32, data: Icons::LOVE
|
||||||
|
Loading…
Reference in New Issue
Block a user