public Method

ListenerMixin.tag_start(name, attributes)

There's no documentation for this item.

Source Code

# File rss/parser.rb, line 298
def tag_start(name, attributes)
  @text_stack.push('')

  ns = @ns_stack.last.dup
  attrs = {}
  attributes.each do |n, v|
    if /\Axmlns(?:\z|:)/ =~ n
      ns[$POSTMATCH] = v
    else
      attrs[n] = v
    end
  end
  @ns_stack.push(ns)

  prefix, local = split_name(name)
  @tag_stack.last.push([_ns(ns, prefix), local])
  @tag_stack.push([])
  if respond_to?("start_#{local}", true)
    __send__("start_#{local}", local, prefix, attrs, ns.dup)
  else
    start_else_element(local, prefix, attrs, ns.dup)
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.