lib/annotator/attributes.rb
# Convert attributes lines into meaniningful array
Convert attributes lines into meaniningful array
Convert attributes lines into meaniningful array
def parse
      @lines.each do |line|
        if m = line.match(R_ATTRIBUTE)
          @attrs << {:name => m[1].strip, :type => m[2].strip, :desc => m[4].strip}
        elsif m = line.match(R_ATTRIBUTE_NEXT_LINE)
          @attrs[-1][:desc] += " #{m[1].strip}"
        end
      end
    end
def parse @lines . each do | line | if m = line . match ( R_ATTRIBUTE ) @attrs << { :name => m [ 1 ] . strip , :type => m [ 2 ] . strip , :desc => m [ 4 ] . strip } elsif m = line . match ( R_ATTRIBUTE_NEXT_LINE ) @attrs [ - 1 ] [ :desc ] += " #{m[1].strip}" end end end
Convert attributes lines into meaniningful array
Convert attributes lines into meaniningful array