Guest User

Untitled

a guest
Oct 31st, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.32 KB | None | 0 0
  1.         # find position of first start and end comment markers
  2.         block_start = source.find_index { |line|
  3.             line[Regexp.new cs_start[ext]] }
  4.  
  5.         block_end = source.find_index { |line|
  6.             line[Regexp.new cs_end[ext]] }
  7.  
  8.         puts "\tBlock Start: #{block_start}\t\tBlock End: #{block_end}"
Advertisement
Add Comment
Please, Sign In to add comment