Module: Tr3llo::View::Card::ListMine

Extended by:
ListMine
Included in:
ListMine
Defined in:
lib/3llo/view/card/list_mine.rb

Instance Method Summary collapse

Instance Method Details

#render(cards) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/3llo/view/card/list_mine.rb', line 7

def render(cards)
  if cards.any?
    cards
      .map { |card| render_card(card) }
      .join("\n")
  else
    "You are currently assigned to no cards"
  end
end