rubytodo 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rubytodo.rb +2 -2
- data/lib/rubytodo/version.rb +1 -1
- metadata +1 -1
data/lib/rubytodo.rb
CHANGED
@@ -21,9 +21,9 @@ class RubyTodo
|
|
21
21
|
protected
|
22
22
|
|
23
23
|
def self.extract_todos node
|
24
|
-
return
|
24
|
+
return [] unless node.is_a? Sexp
|
25
25
|
todos = node.find_nodes(:call).map { |n| extract_todo_msg_from_args(n[3]) if n[2] == :todo }
|
26
|
-
(todos | node.collect { |n| extract_todos n }).flatten.compact
|
26
|
+
(todos | node.collect { |n| extract_todos n }).flatten.compact
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.extract_todo_msg_from_args node
|
data/lib/rubytodo/version.rb
CHANGED