Method: SXRB::Proxy#on_end

Defined in:
lib/sxrb/proxy.rb

#on_end {|Node| ... } ⇒ nil

Defines a callback that is invoked whenever end tag is encountered.

Yields:

  • (Node)

    block receives parsed node without any nested elements. All inline attributes are available though.

Returns:

  • (nil)


107
108
109
# File 'lib/sxrb/proxy.rb', line 107

def on_end(&block)
  @callback_tree.add_callback(:end, @current_path, &block)
end