Class: PrettyTodo

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

Instance Attribute Summary

Attributes inherited from Todo

#line, #path, #text

Instance Method Summary collapse

Methods inherited from Todo

#initialize

Constructor Details

This class inherits a constructor from Todo

Instance Method Details

#to_sObject



20
21
22
# File 'lib/todo.rb', line 20

def to_s
  "#{@text.red.bold}\nat line #{@line.to_s.blue} in #{@path.blue.underline}"
end