# File lib/org-ruby/headline.rb, line 48
    def initialize(line, parser = nil, offset=0)
      super(line, parser)
      @body_lines = []
      @tags = []
      @export_state = :exclude
      @property_drawer = { }
      if (@line =~ LineRegexp) then
        @level = $&.strip.length + offset
        @headline_text = $'.strip
        if (@headline_text =~ TagsRegexp) then
          @tags = $&.split(/:/)              # split tag text on semicolon
          @tags.delete_at(0)                 # the first item will be empty; discard
          @headline_text.gsub!(TagsRegexp, "") # Removes the tags from the headline
        end
        @keyword = nil
        parse_keywords
      else
        raise "'#{line}' is not a valid headline"
      end
    end