Class: TodoListView

Inherits:
Object
  • Object
show all
Defined in:
lib/todo_list_view.rb

Class Method Summary collapse

Class Method Details

.render(todos) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/todo_list_view.rb', line 4

def self.render(todos)
  output = ""
  todos.each do |todo|
    output += TodoView.new(todo).render
    output += "\n"
  end
  output
end