Class: Debtective::Todos::PrintTable
- Inherits:
-
Object
- Object
- Debtective::Todos::PrintTable
- Defined in:
- lib/debtective/todos/print_table.rb
Overview
Print todos as a table in the stdout
Instance Method Summary collapse
- #call ⇒ Debtective::Todos::List
-
#initialize(user_name = nil) ⇒ PrintTable
constructor
A new instance of PrintTable.
Constructor Details
#initialize(user_name = nil) ⇒ PrintTable
Returns a new instance of PrintTable.
10 11 12 |
# File 'lib/debtective/todos/print_table.rb', line 10 def initialize(user_name = nil) @user_name = user_name end |
Instance Method Details
#call ⇒ Debtective::Todos::List
15 16 17 18 19 |
# File 'lib/debtective/todos/print_table.rb', line 15 def call log_table_headers log_table_rows list end |