Class: TodoLint::Judge
- Inherits:
-
Object
- Object
- TodoLint::Judge
- Defined in:
- lib/todo_lint/judge.rb
Overview
Is this todo worth bothering the user about? Judge the todo, and charge it with a crime if necessary
Instance Attribute Summary collapse
-
#charge ⇒ String, NilClass
readonly
The problem, if any, with this todo.
Instance Method Summary collapse
-
#initialize(todo) ⇒ Judge
constructor
Accept and judge a todo.
Constructor Details
#initialize(todo) ⇒ Judge
Accept and judge a todo
17 18 19 20 |
# File 'lib/todo_lint/judge.rb', line 17 def initialize(todo) @todo = todo @charge = make_charge end |
Instance Attribute Details
#charge ⇒ String, NilClass (readonly)
The problem, if any, with this todo
11 12 13 |
# File 'lib/todo_lint/judge.rb', line 11 def charge @charge end |