class Unparser::Comments

def take_while

def take_while
  number_to_take = @comments.index { |comment| !yield(comment) } || @comments.size
  @comments.shift(number_to_take)
end