lib/docrb/lib/docrb/comment_parser.rb
# Internal: Loads a given stirng into the parser, by splitting it into
# text blocks.
Loads a given stirng into the parser, by splitting it into
text blocks.
Loads a given stirng into the parser by splitting it into text blocks .
def load(text)
      text.each_char do |c|
        @last_char = @current_char
        @current_char = c
        next if c == CARRIAGE
        if @last_char == LINE_BREAK && (c == LINE_BREAK)
          commit_current!
          next
        end
        @current << c
      end
      commit_current!
    end
def load ( text ) text . each_char do | c | @last_char = @current_char @current_char = c next if c == CARRIAGE if @last_char == LINE_BREAK && ( c == LINE_BREAK ) commit_current! next end @current << c end commit_current! end
Internal: Loads a given stirng into the parser, by splitting it into
text blocks.
Internal : Loads a given stirng into the parser by splitting it into text blocks .
text