Class: Sem::Views::Users
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.list(users) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/sem/views/users.rb', line 3 def self.list(users) header = ["NAME"] body = users.map do |user| [user[:id]] end print_table [header, *body] end |