Flowdock
method

start_element

Importance_0
start_element(name, attrs = []) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/xml_mini/nokogirisax.rb, line 41
      def start_element(name, attrs = [])
        new_hash = { CONTENT_KEY => '' }.merge(Hash[attrs])
        new_hash[HASH_SIZE_KEY] = new_hash.size + 1

        case current_hash[name]
          when Array then current_hash[name] << new_hash
          when Hash  then current_hash[name] = [current_hash[name], new_hash]
          when nil   then current_hash[name] = new_hash
        end

        @hash_stack.push(new_hash)
      end
Register or log in to add new notes.