Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # find position of first start and end comment markers
- block_start = source.find_index { |line|
- line[Regexp.new cs_start[ext]] }
- block_end = source.find_index { |line|
- line[Regexp.new cs_end[ext]] }
- puts "\tBlock Start: #{block_start}\t\tBlock End: #{block_end}"
Advertisement
Add Comment
Please, Sign In to add comment