lib/todo_next/line.rb in todo_next-0.0.1 vs lib/todo_next/line.rb in todo_next-0.0.2

- old
+ new

@@ -1,8 +1,8 @@ module TodoNext - class Line + attr_accessor :text, :col_offset, :leaf def initialize(text, col_offset) @text, @col_offset = text, col_offset end @@ -15,11 +15,17 @@ text =~ /^\s*$/ end def comment? text =~ /^#/ end + def passed? + text =~ /^\s*√/ + end + def example? + text =~ /\s*(ex|example)\s*:/ + end def leaf? ; leaf end def branch? ; !leaf? end - end + end end \ No newline at end of file