Sha256: aee60e261cf282623c375fa0d6aeb21b9ee7ce268757147c127a59832be427b5
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require File.dirname(__FILE__) + '/tree' require File.dirname(__FILE__) + '/line' require File.dirname(__FILE__) + '/rspec_generator_visitor' require File.dirname(__FILE__) + '/cli' module TodoNext class Parser def self.parse(text) lines = extract_meaningful_lines(text) tree = Tree::Factory.build(lines) end def self.extract_meaningful_lines(text) text. split("\n"). collect do |text| col_offset = text =~ /\S/ Line.new(text.strip, col_offset) end. reject{|l| l.blank? }. reject{|l| l.comment?} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
todo_next-0.0.1 | lib/todo_next/parser.rb |